Skip to content

Latest commit

 

History

History
254 lines (170 loc) · 14.3 KB

examples.md

File metadata and controls

254 lines (170 loc) · 14.3 KB

Example Notebooks

Try the following tutorials and examples to learn and evaluate various features of the Lets-Plot library.

Quickstart and User Guide

Geoms and Stats

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:

Correlation Plot

Q-Q Plot

  • Geometries: geomQQ, geomQQLine, geomQQ2, geomQQ2Line
  • Quick Q-Q plot: qqPlot()

qq_plots.ipynb

Marginal Plot, ggmarginal()

Joint Plot

Residual Plot

Images

Position Adjustment

Scales

Axis Position

Time Series

scaleXDatetime, scaleYDatetime, scaleYTime, scaleYTime

Facets

facetGrid(), facetWrap()

Coordinate Systems

coordCartesian(), coordFixed(), coordMap(), coordFlip()

Grouping Plots

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.

Ordering categories, asDiscrete() function

Export to File

The ggsave() function is an easy way to export plot to a file in SVG, HTML or raster formats.

Formatting

Themes

Complete themes: themeBW, themeGrey, themeLight, themeClassic, themeMinimal and themeMinimal2 (used by default).

complete_themes.ipynb

Use the theme() function to modify components of a theme.

Color schemes (flavors): flavorDarcula, flavorSolarizedLight, flavorSolarizedDark, flavorHighContrastLight, flavorHighContrastDark.

theme_flavors.ipynb.

Data Sampling

Sampling is a special technique of data transformation, which helps dealing with large datasets and overplotting.

See: Sampling in Lets-Plot.

Tooltip Customization

GeoTools Support

See GeoTools Support.