Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright (c) 2021. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.letsPlot.geom
import jetbrains.letsPlot.Geom
import jetbrains.letsPlot.Pos
import jetbrains.letsPlot.Stat
import jetbrains.letsPlot.intern.layer.StatOptions
import jetbrains.letsPlot.intern.layer.WithSpatialParameters
import jetbrains.letsPlot.intern.layer.geom.PolygonAesthetics
import jetbrains.letsPlot.intern.layer.geom.PolygonMapping
import jetbrains.letsPlot.spatial.SpatialDataset
import jetbrains.letsPlot.tooltips.TooltipOptions
@Suppress("ClassName")
/**
* Display a filled closed path defined by the vertex coordinates of individual polygons.
* 'geomMap' is essentially the same as 'geomPolygon' but uses 'coordMap' as default coordinate system.
*
* @param data dictionary or pandas DataFrame.
* The data to be displayed in this layer. If None, the default, the data
* is inherited from the plot data as specified in the call to [letsPlot][jetbrains.letsPlot.letsPlot].
* @param stat string.
* The statistical transformation to use on the data for this layer, as a string. Supported transformations:
* "identity" (leaves the data unchanged), "count" (counts number of points with same x-axis coordinate),
* "bin" (counts number of points with x-axis coordinate in the same bin), "smooth" (performs smoothing -
* linear default)
* @param position string.
* Position adjustment, either as a string ("identity", "stack", "dodge", ...), or the result of a call to a
* position adjustment function.
* @param tooltips result of the call to the layerTooltips() function.
* Specifies appearance, style and content.
* @param map SpatialDataset.
* Data-structure containing series of planar shapes and, optionally, associates data series (for example:
* names of States and their boundaries).
*
* Supported shapes: Polygon and MultiPolygon.
* All coordinates should be encoded as decimal degrees in WGS84 coordinate reference system.
*
* Can be used with parameter 'mapJoin' for joining data and map coordinates.
* @param mapJoin pair of names or pair of lists of names
* Specifies column names to join the 'data' and the 'map' coordinates on.
* Pair.first: column name or list of column names in the 'data' dataframe.
* Pair.second: column name or list of column names in the 'map' dataframe.
* @param x x-axis coordinates of the vertices of the polygon.
* @param y y-axis coordinates of the vertices of the polygon.
* @param alpha transparency level of a layer.
* Understands numbers between 0 and 1.
* @param color (colour) color of a geometry lines.
* Can be continuous or discrete. For continuous value this will be a color gradient between two colors.
* @param size lines width.
* Defines line width.
* @param linetype type of the line of tile's border.
* Codes and names: 0 = "blank", 1 = "solid", 2 = "dashed", 3 = "dotted", 4 = "dotdash",
* 5 = "longdash", 6 = "twodash".
* @param fill color of geometry filling.
* @param mapping set of aesthetic mappings.
* Aesthetic mappings describe the way that variables in the data are
* mapped to plot "aesthetics".
*/
class geomMap(
data: Map<*, *>? = null,
stat: StatOptions = Stat.identity,
position: jetbrains.letsPlot.intern.layer.PosOptions = Pos.identity,
showLegend: Boolean = true,
sampling: jetbrains.letsPlot.intern.layer.SamplingOptions? = null,
tooltips: TooltipOptions? = null,
override val map: SpatialDataset? = null,
override val mapJoin: Pair? = null,
override val x: Double? = null,
override val y: Double? = null,
override val size: Number? = null,
override val linetype: Any? = null,
override val color: Any? = null,
override val fill: Any? = null,
override val alpha: Number? = null,
mapping: PolygonMapping.() -> Unit = {}
) : PolygonAesthetics,
WithSpatialParameters,
jetbrains.letsPlot.intern.layer.LayerBase(
mapping = PolygonMapping().apply(mapping).seal(),
data = data,
geom = Geom.map(),
stat = stat,
position = position,
showLegend = showLegend,
sampling = sampling,
tooltips = tooltips
)