Miscellaneous Functions for 'ggplot2'

Provides a collection of 'ggplot2' extensions and utilities for creating geometric layers, applying themes, working with legends, and modifying plot objects.


ggfun

ggfun provides a collection of extensions and utilities for working with ggplot2 objects. It includes additional geometric layers, theme elements, legend helpers, plot-data utilities, and tools for modifying plot objects.

Installation

Install the released version from CRAN:

install.packages("ggfun")

You can install the development version from GitHub with:

## install.packages("remotes")
remotes::install_github("YuLab-SMU/ggfun")

Features

  • Additional geoms, including geom_xspline(), geom_hist(), geom_bezier(), geom_cake(), geom_triangle(), and geom_segment_c().
  • Theme helpers such as theme_noaxis(), theme_noxaxis(), theme_noyaxis(), theme_transparent(), theme_nothing(), and theme_blinds().
  • Custom theme elements, including element_roundrect() and element_blinds().
  • Legend and font utilities such as get_legend(), gglegend(), set_font(), and set_point_legend_shape().
  • Plot manipulation helpers, including facet_set(), get_plot_data(), get_aes_var(), xrange(), yrange(), and ggrange().
  • Utilities for tree-data style workflows, including %<+%, td_filter(), td_mutate(), and td_unnest().

Links

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ggfun")

0.2.2 by Guangchuang Yu, 5 days ago


https://github.com/YuLab-SMU/ggfun


Report a bug at https://github.com/YuLab-SMU/ggfun/issues


Browse source code at https://github.com/cran/ggfun


Authors: Guangchuang Yu [aut, cre, cph] (ORCID: , Shuangbin Xu [aut]


Documentation:   PDF Manual  


Artistic-2.0 license


Imports cli, dplyr, ggplot2, graphics, grid, rlang, scales, utils, yulab.utils

Suggests ggplotify, knitr, pkgload, quarto, testthat, tidyr, ggnewscale


Imported by aplot, aplotExtra, fanyi, ggbreak, ggimage, ggtangle, scatterpie, tidydr.

Suggested by FossilSim, delimtools, pctax.


See at CRAN