ashenoy-cmbi/grafify: Version 2.3.0
Description
The main motivation behind this update was to simplify the package by reducing the number of exported functions. So some features that were previously in separate functions have been made available more easily via an additional argument to existing functions (e.g. single colour function (plot_..._sc) now offered in respective plot_ function with a new argument (see below). This has uncluttered the namespace of grafify. Most of the other additions are related to colour schemes.
A new
SingleColourargument has been added to two-variablesplot_functions to generate graphs with a single colour along the X-axis aesthetic. This means the 8plot_..._scfunctions introduced in v1.5.0 are deprecated, but this feature is still retained in existingplot_functions. This option also added toplot_3d_functions for plots of one-way ANOVA data.Four new colourblind-friendly categorical colour schemes (chosen from cols4all package):
fishy,kelly,r4,safe
- Four new quantitative schemes for continuous or divergent colours.
- sequential/continuous:
blue_conti,grey_conti - divergent:
OrBl_div,PrGn_div
All schemes also available through scale_fill.. and scale_colour_... calls to be used on any ggplot2 object.
scale_fill_grafifyandscale_colour_grafify(orscale_color_grafify) have been rewritten. These have two new arguments that offer features previously inscale_fill_grafify2/scale_colour_grafify2/scale_color_grafify_candscale_fill_grafify_c/scale_colour_grafify_c/scale_color_grafify_Cscale functions. These 6 functions are now deprecated to reduce exported namespace.
The new arguments are discrete (logical T/F) to select discrete or continuous palettes, and ColSeq (logical T/F) to pick sequential or distant colours from a chosen palette.
- Fixed the error in legend title in one-way ANOVA plots with
plot_3d_that incorrectly referred toxcolandshapesarguments. - Fixed the error that led to depiction of different shapes in
plot_3d_scatterviolinas compared to the other twoplot_3d_functions. posthoc_Trends...functions rewritten withstats::model.frame()to get model data frame as this is a more flexible method.- Order of colours in
light,brightandmutedschemes changed slightly for better separation of colours when next to each other. - The
jittersetting inplot_scaltter_is set to0.2so the graph as plotted with jitter by default. - The default colour scheme for all graphs is now
okabe_ito(theall_grafifypalette is was just a concatenation of all palettes without real basis in good visualisation). Use one of the other palettes if more than 8 colours are needed (e.g.kelly, which has 20 discreet colours).
Files
ashenoy-cmbi/grafify-v2.3.0.zip
Additional details
Related works
- Is supplement to
- https://github.com/ashenoy-cmbi/grafify/tree/v2.3.0 (URL)