Skip to contents

To create a plot, start with the tidyplot() function. Build the plot by adding, removing, and adjusting plot components. The split_plot() function must be called last in this sequence and can only be followed by save_plot().

Create

tidyplot()
Create a new tidyplot

Add

Add plot components to represent data points, central tendency measures, dispersion and more.

Data points & amounts

Central tendency

Distribution & uncertainty

Proportion

Statistical testing

Annotation

add_title() add_caption()
Add plot title or caption
add_data_labels() add_data_labels_repel()
Add data labels
add_reference_lines()
Add reference lines

Remove

Remove plot components.

Adjust

Adjust plot components, properties, and data labels.

Components & properties

adjust_colors()
Adjust colors
adjust_font()
Adjust font
adjust_legend_title() adjust_legend_position()
Adjust legend
adjust_title() adjust_x_axis_title() adjust_y_axis_title() adjust_caption()
Adjust titles and caption
adjust_size()
Adjust plot area size
adjust_padding()
Adjust plot area padding
adjust_x_axis() adjust_y_axis()
Adjust axes

Axis and color labels

Themes

Finetune the appearance of the plot with themes and color schemes.

Themes

Color schemes

Split

Split the plot into a multi plot layout, eventually across multiple pages.

split_plot()
Split plot into multiple subplots

Output

Output the final plot or intermediate stages to the screen or to a file.

view_plot()
View plot on screen
save_plot()
Save plots to file

Helpers

all_rows() filter_rows() max_rows() min_rows() first_rows() last_rows() sample_rows()
Subset data rows
add()
Add ggplot2 code to a tidyplot
as_tidyplot()
Convert ggplot to tidyplot
flip_plot() superseded
Flip x and y-axis
format_number() format_p_value()
Format numbers or p values

Data

animals
Animals data
climate
Climate data
dinosaurs
Dinosaurs data
distributions
Distributions data
energy
Energy data
energy_week
Energy week data
eu_countries
EU countries data
gene_expression
RNA-Seq expression data
spendings
Spending data
study
Study data
time_course
Time course data