Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

flush_ticks

Makes axis text labels flush on the ends


Description

A covenience function intended for basic, fixed-scale plots only (i.e. does not handle free scales in facets).

You need to pass in a ggplot2 object to this function. It can't be +'d in a chain of geoms, coords, scales, themes, etc. It also builds the plot (but does not display it) so if the plt takes a while (i.e. has lots of data or transforms) this will also take a while.

Usage

flush_ticks(gg, flush = "XY", plot = TRUE, cat = TRUE)

Arguments

gg

ggplot2 plot object

flush

either "X" or "Y" or "XY" to flush individual or both axes. Default: both.

plot

if FALSE then the ggplot object will be returned invisibly

cat

if TRUE then display theme() statements and copy them to the clipboard

Value

ggplot2 object with theme() elements added

Note

Intended for basic, fixed-scale plots only (i.e. does not handle free scales in facets).


hrbrthemes

Additional Themes, Theme Components and Utilities for 'ggplot2'

v0.8.0
MIT + file LICENSE
Authors
Bob Rudis [aut, cre] (<https://orcid.org/0000-0001-5670-2640>), Patrick Kennedy [ctb], Philipp Reiner [ctb], Dan Wilson [ctb] (Secondary axis support), Xavier Adam [ctb], Google [cph] (Roboto Condensed & Titillium Web Fonts), IBM [cph] (Plex Sans Font), Impallari Type [cph] (Public Sans Font), Jacob Barnett [ctb], Thomas J. Leeper [ctb] (<https://orcid.org/0000-0003-4097-6326>), Joris Meys [ctb]
Initial release
2020-03-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.