class geom_map : PolygonAesthetics, WithSpatialParameters, LayerBase
Display a filled closed path defined by the vertex coordinates of individual polygons. 'geom_map' is essentially the same as 'geom_polygon' but uses 'coord_map' as default coordinate system.
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 lets_plot.
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)
position
- string.
Position adjustment, either as a string ("identity", "stack", "dodge", ...), or the result of a call to a
position adjustment function.
tooltips
- result of the call to the layer_tooltips() function.
Specifies appearance, style and content.
map
- SpatialDataset.
Data-structure containing series of planar shapes and, optionally, associates data series (for example:
names of States and their boundaries).
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.
x
- x-axis coordinates of the vertices of the polygon.
y
- y-axis coordinates of the vertices of the polygon.
alpha
- transparency level of a layer.
Understands numbers between 0 and 1.
color
- (colour) color of a geometry lines.
Can be continuous or discrete. For continuous value this will be a color gradient between two colors.
size
- lines width.
Defines line width.
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".
fill
- color of geometry filling.
mapping
- set of aesthetic mappings.
Aesthetic mappings describe the way that variables in the data are
mapped to plot "aesthetics".
<init> |
Display a filled closed path defined by the vertex coordinates of individual polygons. 'geom_map' is essentially the same as 'geom_polygon' but uses 'coord_map' as default coordinate system. geom_map(data: Map<*, *>? = null, stat: StatOptions = Stat.identity, position: PosOptions = Pos.identity, showLegend: Boolean = true, sampling: SamplingOptions? = null, tooltips: TooltipOptions? = null, map: SpatialDataset? = null, mapJoin: Pair<Any, Any>? = null, x: Double? = null, y: Double? = null, size: Number? = null, linetype: Any? = null, color: Any? = null, fill: Any? = null, alpha: Number? = null, mapping: PolygonMapping.() -> Unit = {}) |
alpha |
transparency level of a layer. Understands numbers between 0 and 1. val alpha: Number? |
color |
(colour) color of a geometry lines. Can be continuous or discrete. For continuous value this will be a color gradient between two colors. val color: Any? |
fill |
color of geometry filling. val fill: Any? |
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". val linetype: Any? |
map |
SpatialDataset. Data-structure containing series of planar shapes and, optionally, associates data series (for example: names of States and their boundaries). val map: SpatialDataset? |
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. val mapJoin: Pair<Any, Any>? |
size |
lines width. Defines line width. val size: Number? |
x |
x-axis coordinates of the vertices of the polygon. val x: Double? |
y |
y-axis coordinates of the vertices of the polygon. val y: Double? |
toSpec |
fun Layer.toSpec(): MutableMap<String, Any> |