Learn R Programming

lemon (version 0.4.9)

Freshing Up your 'ggplot2' Plots

Description

Functions for working with legends and axis lines of 'ggplot2', facets that repeat axis lines on all panels, and some 'knitr' extensions.

Copy Link

Version

Install

install.packages('lemon')

Version

0.4.9

License

GPL-3

Issues

Pull Requests

Stars

Forks

Last Published

February 8th, 2024

Functions in lemon (0.4.9)

lemon_print

knitr extension: Always use `kable` for data frames.
remove_labels_from_axis

Removes labels from axis grobs.
render_gpar

Render a ggplot2 grob or retrieve its gpar object.
scale_x_symmetric

Symmetrix position scale for continuous x and y
reposition_legend

Reposition a legend onto a panel
coord_flex_cart

Cartesian coordinates with flexible options for drawing axes
.dot

Create paths that are safe from changing working directory.
get_panel_range

Version safe(r) method to get the y- and x-range from trained scales.
annotate_y_axis

Annotations on the axis
facet_rep_grid

Repeat axis lines and labels across all facet panels
geom_pointpath

Connected points
coord_capped_cart

Cartesian coordinates with capped axis lines.
geom_siderange

Display range of data in side of plot
g_legend

Extract ggplot legends
brackets_horizontal

Axis brackets instead of axis ticks and lines
grid_arrange_shared_legend

Share a legend between multiple plots
lemon

Freshing up your ggplots
waiver

The waivers are from ggplot2/R/utilities.r.
gtable_show_grill

Visualise underlying gtable layout.
is.small

Is a given unit 'small'?
guidebox_as_column

Guidebox as a column
lemon-ggproto

ggproto classes used in lemon!
as.lemon_plot

Lemon plots; ggplots with extended functionality.