Package index
Creating plots
plot2() creates a complete plot from data in one call. Its methods accept data frames, vectors, tables, formulas, matrices, models and geographic data. add_type() and its shortcuts add layers to a plot.
-
plot2() - Create a
ggplotin a Single Call -
plot2(<default>)plot2(<formula>)plot2(<freq>)plot2(<sf>)plot2(<data.frame>)plot2(<matrix>) - Methods for
plot2() -
add_type()add_line()add_point()add_col()add_errorbar()add_smooth()add_sf() - Add Plot Element
Changing plots
Change the mapping or the order of the layers of an existing plot, or use the coordinate system of spider plots.
-
add_mapping() - Add Additional Mapping
-
move_layer() - Move a
ggplotLayer -
coord_spider()CoordSpider - Spider (Radar) Coordinate System for ggplot2
Colours
Get colours from names and palettes, and register the colours of an organisation for use in all plots.
-
get_colour()register_colour()unregister_colour()add_white() - Get (and Register) Colours from R, Viridis and More
Themes, titles and labels
The default theme of plot2(), markdown in titles, and labelling functions for axes and data labels.
-
theme_minimal2() - An Even More Minimal Theme
-
md_to_expression() - Convert Markdown to Plotmath Expression
-
get_plot_title() - Get Plot Title
-
euros()dollars() - Label Currencies
Number formatting
The decimal mark and thousands separator, determined from the session or set with options.
-
dec_mark()big_mark() - Use Decimal Comma?
-
as_plotly()plotly_style() - Create Interactive Plotly
-
create_interactively() - Interactively Create a
plot2
-
plot2-options plot2()Options
-
admitted_patients - Example Data Set with Admitted Patients
-
netherlands - Example Geography Data Set: the Netherlands
dplyr and tidyselect functions
These are functions from dplyr and tidyselect that can be used in plot2() directly, without the need to load those packages first.
-
reexports%>%nn_distinctcase_whenfirstlastall_ofany_ofeverythingstarts_withends_withmatcheswhere - Objects exported from other packages