Learn R Programming

⚠️There's a newer version (0.4.9) of this package.Take me there.

lemon (version 0.4.6)

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')

Monthly Downloads

6,609

Version

0.4.6

License

GPL-3

Issues

Pull Requests

Stars

Forks

Last Published

December 2nd, 2022

Functions in lemon (0.4.6)

geom_siderange

Display range of data in side of plot
get_panel_range

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

Axis brackets instead of axis ticks and lines
annotate_y_axis

Annotations on the axis
coord_capped_cart

Cartesian coordinates with capped axis lines.
coord_flex_cart

Cartesian coordinates with flexible options for drawing axes
facet_rep_grid

Repeat axis lines and labels across all facet panels
is.small

Is a given unit 'small'?
lemon-ggproto

ggproto classes used in lemon!
.dot

Create paths that are safe from changing working directory.
remove_labels_from_axis

Removes labels from axis grobs.
reposition_legend

Reposition a legend onto a panel
lemon_print

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

Render a ggplot2 grob or retrieve its gpar object.
guidebox_as_column

Guidebox as a column
gtable_show_grill

Visualise underlying gtable layout.
lemon

Freshing up your ggplots
as.lemon_plot

Lemon plots; ggplots with extended functionality.
g_legend

Extract ggplot legends
grid_arrange_shared_legend

Share a legend between multiple plots
geom_pointpath

Connected points
waiver

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

Symmetrix position scale for continuous x and y