Package: plot2 1.99.0.9031

plot2: A Plotting Assistant for Fast 'ggplot2' Visualisations

A streamlined extension of 'ggplot2' designed to simplify and accelerate the creation of data visualisations. 'plot2' automates common tasks such as axis handling, plot type selection, and data transformation, allowing users to create complex, publication-ready plots with minimal code. It integrates seamlessly with the tidyverse and retains full compatibility with 'ggplot2', while offering additional conveniences like enhanced sorting, faceting, and custom theming.

Authors:Matthijs S. Berends [aut, cre], Erwin E. A. Hassing [aut, ctb], Wikje E. Berends-Hoekstra [aut, ctb]

plot2_1.99.0.9031.tar.gz
plot2_1.99.0.9031.zip(r-4.7)plot2_1.99.0.9031.zip(r-4.6)plot2_1.99.0.9031.zip(r-4.5)
plot2_1.99.0.9031.tgz(r-4.6-any)plot2_1.99.0.9031.tgz(r-4.5-any)
plot2_1.99.0.9031.tar.gz(r-4.7-any)plot2_1.99.0.9031.tar.gz(r-4.6-any)
plot2_1.99.0.9031.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
plot2/json (API)

# Install 'plot2' in R:
install.packages('plot2', repos = c('https://msberends.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/msberends/plot2/issues

Pkgdown/docs site:https://msberends.github.io

Datasets:

On CRAN:

Conda:

ggplot2helperplottingtidyverse

5.81 score 4 stars 1 packages 14 scripts 38 exports 42 dependencies

Last updated from:1badfa036f. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK218
source / vignettesOK316
linux-release-x86_64OK215
macos-release-arm64OK173
macos-oldrel-arm64OK116
windows-develOK204
windows-releaseOK175
windows-oldrelOK161
wasm-releaseOK142

Exports:%>%add_coladd_errorbaradd_lineadd_mappingadd_pointadd_sfadd_smoothadd_typeadd_whiteall_ofany_ofas_plotlybig_markcoord_spiderCoordSpidercreate_interactivelydec_markdollarsends_witheuroseverythingfirstget_colourget_plot_titlelastmatchesmd_to_expressionmove_layernn_distinctplot2plotly_styleregister_colourstarts_withtheme_minimal2unregister_colourwhere

Dependencies:backportsbroomcleanerclicpp11crayondplyrevaluatefarverforcatsgenericsggplot2gluegtablehighrisobandknitrlabelinglifecyclemagrittrpillarpkgconfigpurrrR6RColorBrewerrlangS7scalesshowtextshowtextdbstringistringrsysfontstibbletidyrtidyselectutf8vctrsviridisLitewithrxfunyaml

An Introduction to plot2(): Enhancing Your ggplot2 Workflow
Introduction | The Plot2 Philosophy: Less Typing, More Plotting | Getting Started with plot2() | Basic Usage: Let plot2() Do the Work | Customising the Plot Type | A Closer Look at the Axes | Setting Up Basic Axes | Working with Multiple Variables | Delving into Categories | Basic Grouping | Customising Categories | Exploring Facets | Basic Faceting | Advanced Faceting Options | Leveraging In-line Transformations with plot2() | Aggregations Made Easy | Combining Data with In-line Transformations | In-line Math Transformations | Advanced Formatting on the Fly | Combining Everything Together | Sorting and Limiting Data | Basic Sorting | Sorting Alphabetically | Sorting with a Custom Order | Limiting Data | Combining Sorting with Limiting | Visualising Sorting Options | Customising Colours | Using Pre-set Colour Scales | Defining Custom Colours | Default Colours | Advanced Plot Types | Adding Elements with add_*() Functions | Adding Lines, Points, and Columns | Adding Points | Adding Columns | Plotting Error Bars | Adding Spatial Features with add_sf() | Customising Fonts in plot2() | Using System Fonts and Google Fonts | Creating Consistent Themes with Fonts | Discussion | Enhancing Workflow Efficiency | A Natural Extension of ggplot2 | Flexibility Without Complexity | Philosophical Underpinnings | Reflecting on Usage Scenarios | Looking Forward

Last update: 2026-02-23
Started: 2021-11-10

Supported Plot Types
Column / Bar | Line | Point | Area | Boxplot / Violin | Histogram | Geo (sf) | Beeswarm | Back-to-back | Sankey | Spider | UpSet | Dumbbell

Last update: 2026-02-23
Started: 2025-11-30

Readme and manuals

Help Manual

Help pageTopics
Add Additional Mappingadd_mapping
Add Plot Elementadd_col add_errorbar add_line add_point add_sf add_smooth add_type
Example Data Set with Admitted Patientsadmitted_patients
Create Interactive Plotlyas_plotly plotly_style
Spider (Radar) Coordinate System for ggplot2CoordSpider coord_spider
Interactively Create a 'plot2'create_interactively
Use Decimal Comma?big_mark dec_mark
Get (and Register) Colours from R, Viridis and Moreadd_white get_colour register_colour unregister_colour
Get Plot Titleget_plot_title
Label Euro currenciesdollars euros labellers
Convert Markdown to Plotmath Expressionmd_to_expression
Move a 'ggplot' Layermove_layer
Example Geography Data Set: the Netherlandsnetherlands
Conveniently Create a New 'ggplot'plot2
Methods for 'plot2()'plot2-methods plot2.data.frame plot2.default plot2.formula plot2.freq plot2.matrix plot2.sf
'plot2()' Optionsplot2-options
An Even More Minimal Themetheme_minimal2