plot-api / jetbrains.letsPlot.geom / geom_tile

geom_tile

class geom_tile : TileAesthetics, LayerBase

Display a rectangle defined by the center of the tile and its size (x, y, width, height).

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.

x - x-axis coordinates of the center of rectangles.

y - y-axis coordinates of the center of rectangles.

width - width of a tile.

height - height of a tile.

alpha - transparency level of a layer.

color - (colour) color of a geometry lines.

fill - color of geometry filling.

size - lines width.

linetype - type of the line. Codes and names: 0 = "blank", 1 = "solid", 2 = "dashed", 3 = "dotted", 4 = "dotdash", 5 = "longdash", 6 = "twodash".

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

Constructors

<init>

Display a rectangle defined by the center of the tile and its size (x, y, width, height).

geom_tile(data: Map<*, *>? = null, stat: StatOptions = identity, position: PosOptions = Pos.identity, showLegend: Boolean = true, sampling: SamplingOptions? = null, tooltips: TooltipOptions? = null, x: Double? = null, y: Double? = null, width: Double? = null, height: Double? = null, alpha: Number? = null, color: Any? = null, fill: Any? = null, linetype: Any? = null, size: Number? = null, mapping: TileMapping.() -> Unit = {})

Properties

alpha

transparency level of a layer.

val alpha: Number?

color

(colour) color of a geometry lines.

val color: Any?

fill

color of geometry filling.

val fill: Any?

height

height of a tile.

val height: Double?

linetype

type of the line. Codes and names: 0 = "blank", 1 = "solid", 2 = "dashed", 3 = "dotted", 4 = "dotdash", 5 = "longdash", 6 = "twodash".

val linetype: Any?

size

lines width.

val size: Number?

width

width of a tile.

val width: Double?

x

x-axis coordinates of the center of rectangles.

val x: Double?

y

y-axis coordinates of the center of rectangles.

val y: Double?

Extension Functions

toSpec

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