diff --git a/cran-comments.md b/cran-comments.md index 17eda91d..44d73818 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -16,13 +16,13 @@ One comment flagged that examples for one reference page (`stat_alluvium`) took There were no ERRORs or WARNINGs. -On several platforms, one NOTE flagged the example runtime issue above (with a 5s threshold). On one platform (Fedora Linux, R-devel, clang, gfortran), several NOTEs flagged additional example runtime issues. +On some platforms, one NOTE flagged the example runtime issue above (with a 5s threshold). On one platform (Fedora Linux, R-devel, clang, gfortran), several NOTEs flagged additional example runtime issues. On one platform (Ubuntu Linux 16.04 LTS, R-release, GCC), one NOTE was due to **vdiffr** being suggested but not available, and two NOTEs flagged possibly invalid URLs, both of which have been verified. ### WinBuilder -There were no ERRORs or WARNINGs. On the current release, one NOTE flagged the example runtime issue above. +There were no ERRORs or WARNINGs. On some runs, one NOTE flagged the example runtime issue above. ## Downstream dependencies diff --git a/docs/articles/ggalluvial.html b/docs/articles/ggalluvial.html index c3f73b99..d5ff0fe7 100644 --- a/docs/articles/ggalluvial.html +++ b/docs/articles/ggalluvial.html @@ -91,7 +91,7 @@
vignettes/ggalluvial.rmd
ggalluvial.rmd
vignettes/labels.rmd
labels.rmd
vignettes/order-rectangles.rmd
order-rectangles.rmd
The knot.pos
parameter of geom_alluvium()
and geom_flow()
is now interpreted as a proportion of the total length of each flow, i.e. of the gap between adjacent strata (not axes). This means that values will vary with axis positions and stratum widths. Setting the new knot.prop
parameter to FALSE
prevents this by interpreting knot.pos
as a constant value in the x
direction.
These flows are rendered using grid::xsplineGrob()
with four control points each: the endpoints and the two knots. To complement them, several other curves are now available: linear (equivalent to knot.pos = 0
), cubic, quintic, sinusoidal, arctangent, and sigmoid, summoned by the new curve
parameter (which defaults to the x-spline). (The asymptotic functions, arctangent and sigmoid, are compressed according to the new reach
parameter.) The new curves are rendered piecewise linearly, with resolution controlled by the new segments
parameter (similar to ggplot2::stat_ellipse()
).
These flows are rendered using grid::xsplineGrob()
with four control points each: the endpoints and the two knots. To complement them, several other curves are now available: linear (equivalent to knot.pos = 0
), cubic, quintic, sinusoidal, arctangent, and sigmoid, summoned by the new curve_type
parameter (which defaults to the x-spline). (The asymptotic functions, arctangent and sigmoid, are compressed according to the new curve_range
parameter.) The new curves are rendered piecewise linearly, with resolution controlled by the new segments
parameter (similar to ggplot2::stat_ellipse()
).
The stratum and lode ordering parameters now default to NULL
, in which case they are reassigned to global options internally. This simplifies their documentation. The new curve parameters curve_type
, curve_range
, and segments
can also be set as options and are documented in the same way.
x
scale.
Character; the type of curve used to produce flows. Defaults to
-"xspline"
and can be alternatively set to one of "linear"
, "cubic"
,
-"quintic"
, "sine"
, "arctangent"
, and "sigmoid"
. "xspline"
-produces approximation splines using 4 points per curve; the alternatives
-produce interpolation splines between points along the graphs of functions
-of the associated type. See the Curves section.
Character; the type of curve used to produce flows.
+Defaults to "xspline"
and can be alternatively set to one of "linear"
,
+"cubic"
, "quintic"
, "sine"
, "arctangent"
, and "sigmoid"
.
+"xspline"
produces approximation splines using 4 points per curve; the
+alternatives produce interpolation splines between points along the graphs
+of functions of the associated type. See the Curves section.
For alternative curve
s based on asymptotic functions, the
-value along the asymptote at which to truncate the function to obtain the
-shape that will be scaled to fit between strata. See the Curves
-section.
For alternative curve_type
s based on asymptotic
+functions, the value along the asymptote at which to truncate the function
+to obtain the shape that will be scaled to fit between strata. See the
+Curves section.
geom_alluvium()
and geom_flow()
render flows between lodes as
-splines about quartets of control points using grid::xsplineGrob()
. These
-curves are parameterized by the relative location of the knot (knot.pos
)
-that governs the bending of each end toward their meeting at the point of
-inflection. They are quick to render and clear to read. Nevertheless, for any
-number of reasons, users may prefer plots that use differently-shaped curves.
-A variety of such options are illustrated in this blog post by Jeffrey Shaffer. A subset of these,
-some with added flexibility, are implemented here. Each is encoded as a
-continuous, increasing, bijective function from the unit interval \([0,1]\)
-to itself, and each is rescaled, if necessary, so that its endpoints meet the
-corresponding lodes. They are rendered piecewise-linearly, by default using
-segments = 48
. Summon each curve type by passing one of the following
-strings to curve
:
grid::xsplineGrob()
, are
+parameterized by the relative location of the knot (knot.pos
). They are
+quick to render and clear to read, but users may prefer plots that use
+differently-shaped ribbons.
+A variety of such options are documented at, e.g., this easing functions cheat sheet and this blog post by Jeffrey Shaffer. Easing functions are
+not (yet) used in ggalluvial, but several alternative curves are available.
+Each is encoded as a continuous, increasing, bijective function from the unit
+interval \([0,1]\) to itself, and each is rescaled so that its endpoints
+meet the corresponding lodes. They are rendered piecewise-linearly, by
+default using segments = 48
. Summon each curve type by passing one of the
+following strings to curve_type
:
"linear"
: \(f(x)=x\), the unique degree-1 polynomial that takes
0 to 0 and 1 to 1
"cubic"
: \(f(x)=3x^{2}-2x^{3}\), the unique
@@ -310,16 +310,29 @@
"sine"
: the unique sinusoidal function that is flat at both
endpoints
"arctangent"
: the inverse tangent function, scaled and re-centered to the
-unit interval from a symmetric domain with radius reach
curve_range
"sigmoid"
: the sigmoid function, scaled and re-centered to the unit
-interval from a symmetric domain with radius reach
curve_range
Only the (default) "xspline"
option uses the knot.*
parameters, while
only the alternative curves use the segments
parameter, and only
-"arctangent"
and "sigmoid"
use the reach
parameter. Larger values of
-reach
result in greater compression and steeper slopes. The NULL
default
-will be changed to 2+sqrt(3)
for "arctangent"
and to 6
for "sigmoid"
.
"arctangent"
and "sigmoid"
use the curve_range
parameter. (Both are
+ignored if not needed.) Larger values of curve_range
result in greater
+compression and steeper slopes. The NULL
default will be changed to
+2+sqrt(3)
for "arctangent"
and to 6
for "sigmoid"
.
+These package-specific options set global values for curve_type
,
+curve_range
, and segments
that will be defaulted to when not manually
+set:
ggalluvial.curve_type
: defaults to "xspline"
.
ggalluvial.curve_range
: defaults to NA
, which triggers the
+curve-specific default values.
ggalluvial.segments
: defaults to 48L
.
See base::options()
for how to use options.
Character; the type of curve used to produce flows. Defaults to
-"xspline"
and can be alternatively set to one of "linear"
, "cubic"
,
-"quintic"
, "sine"
, "arctangent"
, and "sigmoid"
. "xspline"
-produces approximation splines using 4 points per curve; the alternatives
-produce interpolation splines between points along the graphs of functions
-of the associated type. See the Curves section.
Character; the type of curve used to produce flows.
+Defaults to "xspline"
and can be alternatively set to one of "linear"
,
+"cubic"
, "quintic"
, "sine"
, "arctangent"
, and "sigmoid"
.
+"xspline"
produces approximation splines using 4 points per curve; the
+alternatives produce interpolation splines between points along the graphs
+of functions of the associated type. See the Curves section.
For alternative curve
s based on asymptotic functions, the
-value along the asymptote at which to truncate the function to obtain the
-shape that will be scaled to fit between strata. See the Curves
-section.
For alternative curve_type
s based on asymptotic
+functions, the value along the asymptote at which to truncate the function
+to obtain the shape that will be scaled to fit between strata. See the
+Curves section.
geom_alluvium()
and geom_flow()
render flows between lodes as
-splines about quartets of control points using grid::xsplineGrob()
. These
-curves are parameterized by the relative location of the knot (knot.pos
)
-that governs the bending of each end toward their meeting at the point of
-inflection. They are quick to render and clear to read. Nevertheless, for any
-number of reasons, users may prefer plots that use differently-shaped curves.
-A variety of such options are illustrated in this blog post by Jeffrey Shaffer. A subset of these,
-some with added flexibility, are implemented here. Each is encoded as a
-continuous, increasing, bijective function from the unit interval \([0,1]\)
-to itself, and each is rescaled, if necessary, so that its endpoints meet the
-corresponding lodes. They are rendered piecewise-linearly, by default using
-segments = 48
. Summon each curve type by passing one of the following
-strings to curve
:
grid::xsplineGrob()
, are
+parameterized by the relative location of the knot (knot.pos
). They are
+quick to render and clear to read, but users may prefer plots that use
+differently-shaped ribbons.
+A variety of such options are documented at, e.g., this easing functions cheat sheet and this blog post by Jeffrey Shaffer. Easing functions are
+not (yet) used in ggalluvial, but several alternative curves are available.
+Each is encoded as a continuous, increasing, bijective function from the unit
+interval \([0,1]\) to itself, and each is rescaled so that its endpoints
+meet the corresponding lodes. They are rendered piecewise-linearly, by
+default using segments = 48
. Summon each curve type by passing one of the
+following strings to curve_type
:
"linear"
: \(f(x)=x\), the unique degree-1 polynomial that takes
0 to 0 and 1 to 1
"cubic"
: \(f(x)=3x^{2}-2x^{3}\), the unique
@@ -320,16 +320,29 @@
"sine"
: the unique sinusoidal function that is flat at both
endpoints
"arctangent"
: the inverse tangent function, scaled and re-centered to the
-unit interval from a symmetric domain with radius reach
curve_range
"sigmoid"
: the sigmoid function, scaled and re-centered to the unit
-interval from a symmetric domain with radius reach
curve_range
Only the (default) "xspline"
option uses the knot.*
parameters, while
only the alternative curves use the segments
parameter, and only
-"arctangent"
and "sigmoid"
use the reach
parameter. Larger values of
-reach
result in greater compression and steeper slopes. The NULL
default
-will be changed to 2+sqrt(3)
for "arctangent"
and to 6
for "sigmoid"
.
"arctangent"
and "sigmoid"
use the curve_range
parameter. (Both are
+ignored if not needed.) Larger values of curve_range
result in greater
+compression and steeper slopes. The NULL
default will be changed to
+2+sqrt(3)
for "arctangent"
and to 6
for "sigmoid"
.
+These package-specific options set global values for curve_type
,
+curve_range
, and segments
that will be defaulted to when not manually
+set:
ggalluvial.curve_type
: defaults to "xspline"
.
ggalluvial.curve_range
: defaults to NA
, which triggers the
+curve-specific default values.
ggalluvial.segments
: defaults to 48L
.
See base::options()
for how to use options.
Character vector of variables to self-adjoin by; passed to
-dplyr::join
functions.
dplyr::mutate-joins
functions.
Suffixes to add to the adjoined link
variables; passed to
-dplyr::join
functions.
dplyr::mutate-joins
functions.
self_adjoin
invokes dplyr::join
functions in order to convert
+
self_adjoin
invokes dplyr::mutate-joins
functions in order to convert
a dataset with measures along a discrete key
variable into a dataset
consisting of column bindings of these measures (by any by
variables) along
adjacent values of key
.
label
aesthetic. Defaults to FALSE
, and requires that
no label
aesthetic is assigned. This parameter is intended for use only
with data in alluva form, which are converted to lode form before the
-statistical transformation. Deprecated; use ggplot2::after_stat()
-instead.
+statistical transformation. Deprecated; use
+ggplot2::after_stat()
instead.
NA
).
These can be used with ggplot2::after_stat()
to control aesthetic evaluation.
These can be used with
+ggplot2::after_stat()
to control aesthetic evaluation.
n
number of cases in lode
count
cumulative weight of lode
prop
weighted proportion of lode
label
aesthetic. Defaults to FALSE
, and requires that
no label
aesthetic is assigned. This parameter is intended for use only
with data in alluva form, which are converted to lode form before the
-statistical transformation. Deprecated; use ggplot2::after_stat()
-instead.
+statistical transformation. Deprecated; use
+ggplot2::after_stat()
instead.
NA
).
These can be used with ggplot2::after_stat()
to control aesthetic evaluation.
These can be used with
+ggplot2::after_stat()
to control aesthetic evaluation.
n
number of cases in lode
count
cumulative weight of lode
prop
weighted proportion of lode
A function (or its name) to be used to distill alluvium values
-to a single lode label, accessible via ggplot2::after_stat()
(similar to
-its behavior in to_alluvia_form()
). In addition to existing functions,
-accepts the character values "first"
(the default), "last"
, and
-"most"
(which returns the first modal value).
ggplot2::after_stat()
(similar to its behavior in
+to_alluvia_form()
). In addition to existing functions, accepts the
+character values "first"
(the default), "last"
, and "most"
(which
+returns the first modal value).
label
aesthetic. Defaults to FALSE
, and requires that
no label
aesthetic is assigned. This parameter is intended for use only
with data in alluva form, which are converted to lode form before the
-statistical transformation. Deprecated; use ggplot2::after_stat()
-instead.
+statistical transformation. Deprecated; use
+ggplot2::after_stat()
instead.
NA
).
These can be used with ggplot2::after_stat()
to control aesthetic evaluation.
These can be used with
+ggplot2::after_stat()
to control aesthetic evaluation.
n
number of cases in lode
count
cumulative weight of lode
prop
weighted proportion of lode