in plot-base/src/commonMain/kotlin/org/jetbrains/letsPlot/core/plot/base/aes/AestheticsDefaults.kt [141:209]
fun create(geomKind: GeomKind, geomTheme: GeomTheme): AestheticsDefaults {
return when (geomKind) {
GeomKind.POINT,
GeomKind.JITTER,
GeomKind.SINA,
GeomKind.Q_Q,
GeomKind.Q_Q_2 -> point(geomTheme)
GeomKind.BAR -> bar(geomTheme)
GeomKind.DOT_PLOT,
GeomKind.Y_DOT_PLOT -> dotplot(geomTheme)
GeomKind.ERROR_BAR -> errorBar(geomTheme)
GeomKind.CROSS_BAR -> crossBar(geomTheme)
GeomKind.POINT_RANGE -> pointRange(geomTheme)
GeomKind.BOX_PLOT -> boxplot(geomTheme)
GeomKind.TEXT,
GeomKind.LABEL -> text(geomTheme)
GeomKind.TEXT_REPEL,
GeomKind.LABEL_REPEL -> textRepel(geomTheme)
GeomKind.PIE -> pie(geomTheme)
GeomKind.LOLLIPOP -> lollipop(geomTheme)
GeomKind.BLANK,
GeomKind.PATH,
GeomKind.LINE,
GeomKind.SMOOTH,
GeomKind.HISTOGRAM,
GeomKind.TILE,
GeomKind.BIN_2D,
GeomKind.HEX,
GeomKind.MAP,
GeomKind.LINE_RANGE,
GeomKind.POLYGON,
GeomKind.AB_LINE,
GeomKind.H_LINE,
GeomKind.V_LINE,
GeomKind.BAND,
GeomKind.AREA_RIDGES,
GeomKind.VIOLIN,
GeomKind.RIBBON,
GeomKind.AREA,
GeomKind.DENSITY,
GeomKind.CONTOUR,
GeomKind.CONTOURF,
GeomKind.DENSITY2D,
GeomKind.DENSITY2DF,
GeomKind.POINT_DENSITY,
GeomKind.Q_Q_LINE,
GeomKind.Q_Q_2_LINE,
GeomKind.FREQPOLY,
GeomKind.RECT,
GeomKind.SEGMENT,
GeomKind.CURVE,
GeomKind.SPOKE,
GeomKind.STEP,
GeomKind.RASTER,
GeomKind.IMAGE,
GeomKind.STAT_R2,
GeomKind.LIVE_MAP -> base(geomTheme)
}
}