Skip to content

Commit 31dd314

Browse files
Docs: Mention computed variables for non-identity statistics.
1 parent d3f5e7b commit 31dd314

40 files changed

+357
-2
lines changed

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/bistro/waterfall/WaterfallPlot.kt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@ package org.jetbrains.letsPlot.bistro.waterfall
33
/**
44
* A waterfall plot shows the cumulative effect of sequentially introduced positive or negative values.
55
*
6+
* ## Notes
7+
*
8+
* Computed variables:
9+
*
10+
* - ..x.. : category id.
11+
* - ..xlabel.. : category name.
12+
* - ..ymin.. : lower value of the change.
13+
* - ..ymax.. : upper value of the change.
14+
* - ..measure.. : kind of a calculation: absolute, relative or total.
15+
* - ..flow_type.. : direction of the flow: increasing, decreasing, or the result (total).
16+
* - ..initial.. : initial value of the change.
17+
* - ..value.. : current cumsum (result of the change) or absolute value (depending on the "measure" column).
18+
* - ..dy.. : value of the change.
19+
*
620
* ## Examples
721
*
822
* - [waterfall_plot.ipynb](https://nbviewer.org/github/JetBrains/lets-plot-docs/blob/master/source/kotlin_examples/cookbook/waterfall_plot.ipynb)

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/geom/geom_area_ridges.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ import org.jetbrains.letsPlot.tooltips.TooltipOptions
2121
/**
2222
* Plots the sum of the `y` and `height` aesthetics versus `x`. Heights of the ridges are relatively scaled.
2323
*
24+
* ## Notes
25+
*
26+
* Computed variables:
27+
*
28+
* - ..height.. : density scaled for the ridges, according to area, counts or to a constant maximum height.
29+
* - ..density.. : density estimate.
30+
* - ..count.. : density * number of points.
31+
* - ..scaled.. : density estimate, scaled to maximum of 1.
32+
* - ..quantile.. : quantile estimate.
33+
*
2434
* ## Examples
2535
*
2636
* - [ridgeline_plot.ipynb](https://nbviewer.org/github/JetBrains/lets-plot-docs/blob/master/source/kotlin_examples/cookbook/ridgeline_plot.ipynb)

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/geom/geom_bar.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@ import org.jetbrains.letsPlot.tooltips.TooltipOptions
2525
/**
2626
* Displays a bar chart which makes the height of the bar proportional to the number of observed variable values, mapped to x-axis.
2727
*
28+
* ## Notes
29+
*
30+
* Computed variables:
31+
*
32+
* - ..count.. : number of points with same x-axis coordinate.
33+
* - ..sum.. : total number of points with same x-axis coordinate.
34+
* - ..prop.. : groupwise proportion.
35+
* - ..proppct.. : groupwise proportion in percent.
36+
* - ..sumprop.. : proportion of points with same x-axis coordinate among all points in the dataset.
37+
* - ..sumpct.. : proportion of points with same x-axis coordinate among all points in the dataset in percent.
38+
*
2839
* ## Examples
2940
*
3041
* - [error_bars.ipynb](https://nbviewer.org/github/JetBrains/lets-plot-docs/blob/master/source/kotlin_examples/cookbook/error_bars.ipynb)

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/geom/geom_bin2d.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ import org.jetbrains.letsPlot.tooltips.TooltipOptions
2626
* However, this may not be the best choice when the values on the X/Y axis have significantly different magnitudes.
2727
* In such cases, try using `coordCartesian()`.
2828
*
29+
* ## Notes
30+
*
31+
* Computed variables:
32+
*
33+
* - ..count.. : number of points with coordinates in the same bin.
34+
*
2935
* ## Examples
3036
*
3137
* - [density_2d.ipynb](https://nbviewer.org/github/JetBrains/lets-plot-docs/blob/master/source/kotlin_examples/cookbook/density_2d.ipynb)

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/geom/geom_boxplot.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ import org.jetbrains.letsPlot.tooltips.TooltipOptions
2525
* Displays the distribution of data based on a five number summary ("minimum", first quartile (Q1),
2626
* median, third quartile (Q3), and "maximum"), and "outlying" points individually.
2727
*
28+
* ## Notes
29+
*
30+
* Computed variables:
31+
*
32+
* - ..lower.. : lower hinge, 25% quantile.
33+
* - ..middle.. : median, 50% quantile.
34+
* - ..upper.. : upper hinge, 75% quantile.
35+
* - ..ymin.. : lower whisker = smallest observation greater than or equal to lower hinge - 1.5 * IQR.
36+
* - ..ymax.. : upper whisker = largest observation less than or equal to upper hinge + 1.5 * IQR.
37+
*
2838
* ## Examples
2939
*
3040
* - [distributions.ipynb](https://nbviewer.org/github/JetBrains/lets-plot-docs/blob/master/source/kotlin_examples/cookbook/distributions.ipynb)

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/geom/geom_contour.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ import org.jetbrains.letsPlot.tooltips.TooltipOptions
2222
/**
2323
* Displays contours of a 3d surface in 2d.
2424
*
25+
* ## Notes
26+
*
27+
* Computed variables:
28+
*
29+
* - ..level.. : height of a contour.
30+
*
2531
* ## Examples
2632
*
2733
* - [contours.ipynb](https://nbviewer.org/github/JetBrains/lets-plot-docs/blob/master/source/kotlin_examples/cookbook/contours.ipynb)

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/geom/geom_contourf.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ import org.jetbrains.letsPlot.tooltips.TooltipOptions
2222
/**
2323
* Fills contours of a 3d surface in 2d.
2424
*
25+
* ## Notes
26+
*
27+
* Computed variables:
28+
*
29+
* - ..level.. : height of a contour.
30+
*
2531
* ## Examples
2632
*
2733
* - [contours.ipynb](https://nbviewer.org/github/JetBrains/lets-plot-docs/blob/master/source/kotlin_examples/cookbook/contours.ipynb)

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/geom/geom_count.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ import org.jetbrains.letsPlot.tooltips.TooltipOptions
1313
/**
1414
* Sum unique values
1515
*
16+
* ## Notes
17+
*
18+
* Computed variables:
19+
*
20+
* - ..n.. : number of points with same x-axis and y-axis coordinates.
21+
* - ..prop.. : proportion of points with same x-axis and y-axis coordinates.
22+
* - ..proppct.. : proportion of points with same x-axis and y-axis coordinates in percent.
23+
*
1624
* ## Examples
1725
*
1826
* - [geom_count.ipynb](https://nbviewer.org/github/JetBrains/lets-plot-docs/blob/master/source/kotlin_examples/cookbook/geom_count.ipynb)

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/geom/geom_density.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ import org.jetbrains.letsPlot.tooltips.TooltipOptions
2222
/**
2323
* Displays a density estimate, which is a smoothed version of the histogram.
2424
*
25+
* ## Notes
26+
*
27+
* Computed variables:
28+
*
29+
* - ..density.. : density estimate (mapped by default).
30+
* - ..count.. : density * number of points.
31+
* - ..scaled.. : density estimate, scaled to maximum of 1.
32+
* - ..quantile.. : quantile estimate.
33+
*
2534
* ## Examples
2635
*
2736
* - [distributions.ipynb](https://nbviewer.org/github/JetBrains/lets-plot-docs/blob/master/source/kotlin_examples/cookbook/distributions.ipynb)

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/geom/geom_density2d.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ import org.jetbrains.letsPlot.tooltips.TooltipOptions
2626
* However, this may not be the best choice when the values on the X/Y axis have significantly different magnitudes.
2727
* In such cases, try using `coordCartesian()`.
2828
*
29+
* ## Notes
30+
*
31+
* Computed variables:
32+
*
33+
* - ..group.. : number of density estimate contour line.
34+
* - ..level.. : calculated value of the density estimate for given contour line.
35+
*
2936
* ## Examples
3037
*
3138
* - [density_2d.ipynb](https://nbviewer.org/github/JetBrains/lets-plot-docs/blob/master/source/kotlin_examples/cookbook/density_2d.ipynb)

0 commit comments

Comments
 (0)