API Reference gig_ridges v#0.1.0

Copy Markdown View Source

Modules

Ridgeline plots for Giggly: ridges along x, one above each baseline, as joy plots draw them.

The binned ridges' stat: each group's values counted in bins along x, every group of a panel in the panel's bins, and each bin written as the two ends of a step, so the ridge drawn through them is the histogram's outline.

The density line geom: a density, or any y above 0, drawn as a ridgeline over a baseline of 0 (GigRidges.Ridgeline), filled R's grey70 down to 0 and outlined in black along its top alone, its legend keys the ridgeline's, where Giggly.Plot.geom_density/3 is filled with nothing.

The density ridges' geom: the ridgeline (GigRidges.Ridgeline), but each point's height scaled so the tallest ridge reaches the next baseline, then 1.8 times that above its baseline where neither the scale: option nor a mapped scale gives another, so neighbouring ridges overlap, and cut off by rel_min_height in place of min_height.

The closed density ridges' geom: the density ridges' (GigRidges.DensityRidgeline), its options, aesthetics, scaling and legend key alike, but each ridge outlined round its whole border, its baseline and sides too, where the density ridges' geom outlines its top alone.

The gradient density ridges' geom: the density ridges' (GigRidges.DensityRidgeline), its options, aesthetics, scaling and legend keys alike, but a ridge whose fill varies along it drawn in pieces of one fill each, outlined round in their fill gradient_lwd: wide, as the gradient ridgeline's (GigRidges.RidgelineGradient) are.

The density ridges stat: each group's density along x, estimated with one bandwidth shared by every group, so ridges of one plot are smoothed alike.

The jittered points' jitter: each of the layer's points, its rows whose datatype is "point", moved across by up to width: either way, 0 unless given, and set up from its baseline by yoffset:, 0 unless given, and up to height: either way, 0.2 unless given, in the units of the y axis, its ymin the height it is drawn at. Every other row stays where it is, but under adjust_vlines: the quantile lines, the rows whose datatype is "vline", which then run across the band the points fall in, from yoffset: less height: above the baseline to yoffset: and height: above it.

The jittered points' raincloud: each of the layer's points, its rows whose datatype is "point", dropped below its ridge as rain below a cloud, into a band height: deep, 0.4 unless given, whose top is ygap: below its baseline, 0.05 unless given, in the units of the y axis, and moved across by up to width: either way, 0 unless given; its ymin the height it is drawn at. Every other row stays where it is, but under adjust_vlines: the quantile lines, the rows whose datatype is "vline", which then run across the band the points fall in.

The jittered points' sina, which the density ridges' geoms take unless given another position: each of the layer's points, its rows whose datatype is "point", set up from its baseline by a random share of its ridge's height there, from ymin at its baseline to ymax at the ridge's top, so the points fill the ridge as its density does. The share runs from rel_min: to rel_max:, 0.02 and 0.98 unless given, and is the point's ymin, the height it is drawn at; its x and every other row stay where they are.

The ridgeline geom: each group a ridge along x, its baseline its y and its top scale times its height above it, filled down to the baseline and outlined along the top, drawn back to front so a lower ridge is drawn over the one above it.

The gradient ridgeline geom: the ridgeline (GigRidges.Ridgeline), its options, aesthetics, defaults and legend keys alike, but a ridge whose fill varies along it drawn in pieces, one a run of points of one fill, from its first point to the next run's, filled and outlined round in that fill, gradient_lwd: wide in R's line-width units, 0.5 unless given, so the seams do not show, and its top line drawn over them.

The vertical ridgeline geom: the ridgeline (GigRidges.Ridgeline) turned, each group a ridge up y, its baseline its x and its outer edge scale times its width beyond it, filled back to the baseline and outlined along that edge, the ridge of the greatest baseline drawn first, filled R's grey80.