plot-api / jetbrains.letsPlot.geom / geom_point

geom_point

class geom_point : PointAesthetics, WithSizeUnitOption, WithSpatialParameters, LayerBase

Draw points defined by an x and y coordinate.

Parameters

data - dictionary or pandas DataFrame, optional. 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, optional. 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, optional. 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 value.

y - y-axis value.

alpha - transparency level of the point Understands numbers between 0 and 1.

color - (colour) color of the geometry. Can be continuous or discrete. For continuous value this will be a color gradient between two colors.

fill - color to paint shape's inner points. Is applied only to the points of shapes having inner points.

shape - shape of the point.

size - size of the point.

mapping - set of aesthetic mappings. Aesthetic mappings describe the way that variables in the data are mapped to plot "aesthetics".

Constructors

<init>

Draw points defined by an x and y coordinate.

geom_point(data: Map<*, *>? = null, stat: StatOptions = Stat.identity, position: PosOptions = identity, showLegend: Boolean = true, sampling: SamplingOptions? = null, tooltips: TooltipOptions? = null, map: SpatialDataset? = null, mapJoin: Pair<Any, Any>? = null, x: Double? = null, y: Double? = null, alpha: Number? = null, color: Any? = null, fill: Any? = null, shape: Any? = null, size: Number? = null, stroke: Number? = null, sizeUnit: String? = null, mapping: PointMapping.() -> Unit = {})

Properties

alpha

transparency level of the point Understands numbers between 0 and 1.

val alpha: Number?

color

(colour) color of the geometry. Can be continuous or discrete. For continuous value this will be a color gradient between two colors.

val color: Any?

fill

color to paint shape's inner points. Is applied only to the points of shapes having inner points.

val fill: 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>?

shape

shape of the point.

val shape: Any?

size

size of the point.

val size: Number?

sizeUnit

val sizeUnit: String?

stroke

val stroke: Number?

x

x-axis value.

val x: Double?

y

y-axis value.

val y: Double?

Functions

seal

fun seal(): Options

Extension Functions

toSpec

fun Layer.toSpec(): MutableMap<String, Any>