ggcognigen provides geoms, themes, styles, and helper functions for {ggplot2} at the Clinical Pharmacology and Pharmacometrics (CPP) business unit of Simulations Plus, Inc.

Load it with:

Functionality

Themes

CPP themes are based on ggplot2::theme_bw(). Additional theme() inputs can be passed to ... for further customization.

Geoms

Additional geom functions:

  • geom_barcount(): a utility function working in combination with geom_bar() and allowing the display of the (possibly cumulative) count, normalized count, or percentages of the data represented by each bar.
  • geom_boxplot2(): a variant on ggplot2::geom_boxplot() allowing users to set whisker limits based upon a confidence interval rather than a multiple of the IQR, display outliers with jitter, and providing a slightly different graphical styles for grouping/coloring.
  • geom_boxcount(): a utility function working in combination with geom_boxplot2() allowing the display of the number of data points used for the calculation of statistics which are graphically represented by each box and whiskers.
  • geom_histcount(): a utility function working in combination with geom_histogram() and allowing the display of the cumulative count, density, or percentage of data in each histogram bar.

Stats

Additional stat functions:

Positions

New position function:

Style and scale functions for mapping aesthetics

These control aesthetics that are mapped to data such as color, fill, linetype, shape, and size.

Forest plots

Additional functions for creation of forest plots:

Miscellaneous helper functions