For version 0.5, the internals of
ggformula have been largely redesigned to allow implementation of some new features. The new version relies much less on string parsing.
attribute::expressionare no longer supported within the main formula.
gf_point(1:10 ~ 1:10)work, making it simpler to create on the fly plots without having to build a data frame first.
y ~ 1is equivalent to
~ yin functions that allow the
~ yformula shape. Example:
gf_histogram(age ~ 1)and
gf_histogram( ~ age)are equivalent
gf_dist()can plot distributions
gf_dhistogram()plots density histograms by default
gf_ash()creates ASH plots
df_stats() has been improved to handle one-sided formulas better.
Secondary layers are now able to inherit both data and formula-defined attributes from the primary layer. Use
inherit = FALSE if you don’t want inheritance. (A few functions have
inherit = FALSE as their default because it seems unlikely that inheriting will be desireable.)
Version 0.4.0 constitutes a stable beta release. Changes to the API are still possible, but more likely future changes will focus on expansion of the suite of functions supplied, changes to the internal implementation, and improved documentation.
datamay now be an expression (like
data = KidsFeet %>% filter(sex == "G"))
gf_histogram()accepts formulas with shape
y ~ x. This makes it possible to create density histograms with
::to indicate mapping aesthetics. (
:will autodetect, but only if the value is the name of a variable in the data set.) This should be considered experimental.
gf_refine()which can be used to pass by chaining anything that would have been “added” in `
gf_lm(), which is
method = "lm"
stat = "density".