Try the following tutorials and examples to learn and evaluate various features of the Lets-Plot
library.
- Quickstart and User Guide
- Geoms and Stats
- Correlation Plot
- Q-Q Plot
- Marginal Plot
- Joint Plot
- Residual Plot
- Images
- Position Adjustment
- Scales
- Time Series
- Facets
- Coordinate Systems
- Grouping Plots
- Ordering categories,
asDiscrete()
function - Export to File
- Formatting
- Themes
- Data Sampling
- Tooltip Customization
- GeoTools Support
geomHistogram, geomDensity, geomVLine, geomFreqpoly, geomBoxplot
:
geomPie
:
geomLollipop
:
geom_lollipop.ipynb
geomViolin, geomAreaRidges
:
geom_violin.ipynb
ridgeline_plot.ipynb
quantile_parameters.ipynb
geomDotplot
:
geom_dotplot
geomYDotplot
:
geom_ydotplot.ipynb
geomErrorBar, geomLine, geomPoint, geomBar, geomCrossbar, geomLineRange, geomPointRange
:
geomPoint, geomSmooth (statSmooth)
:
geomDensity2D, geomDensity2DFilled, geomBin2D, geomPolygon, geomPoint
:
density_2d.ipynb
geomTile, geomContour, geomPolygon (Stat.contour), geomContourFilled
:
contours.ipynb
geomText, geomLabel
, label format:
- Geometries:
geomQQ, geomQQLine, geomQQ2, geomQQ2Line
- Quick Q-Q plot:
qqPlot()
positionDodge()
: error_bars.ipynbpositionDodgeV()
: horizontal_error_bars.ipynbpositionJitter()
: scatter_plot.ipynbpositionStack(), positionFill()
: position_stack.ipynb
scaleColorManual, scaleFillManual
: error_bars.ipynbscaleXContinuous, scaleShapeManual
: scatter_plot.ipynbscaleColorGradient
: density_2d.ipynbscaleFillHue, scaleFillGrey, scaleColorGradient
: contours.ipynbViridis scales
: colors_viridis.ipynb
scaleXDatetime, scaleYDatetime, scaleYTime, scaleYTime
facetGrid(), facetWrap()
coordCartesian(), coordFixed(), coordMap(), coordFlip()
GGBunch
GGBunch allows to show a collection of plots on one figure. Each plot in the collection can have arbitrary location and size. There is no automatic layout inside the bunch.
gggrid()
A simple utility which you can use to arrange plots in a regular grid.
The ggsave()
function is an easy way to export plot to a file in SVG, HTML or raster formats.
Complete themes: themeBW, themeGrey, themeLight, themeClassic, themeMinimal
and themeMinimal2
(used by default).
Use the theme()
function to modify components of a theme.
- themes.ipynb
- legend_and_axis.ipynb
- Title, subtitle, caption
- font size and family
- label hjust, vjust
- label margins
Color schemes (flavors): flavorDarcula, flavorSolarizedLight, flavorSolarizedDark, flavorHighContrastLight, flavorHighContrastDark
.
Sampling is a special technique of data transformation, which helps dealing with large datasets and overplotting.
See: Sampling in Lets-Plot.
- Pick sampling on Bar-chart: sampling_pick.ipynb
- Stratified sampling: sampling_stratified.ipynb
See GeoTools Support.