This geom interpolates smoothly between the values that would normally be provided to geom_bar using a sigmoid curve.Often, this is useful when a stacked bar plot is desired but the values along the perpindicular axis are numeric rather than discrete. A numeric axis often results in overplotting or weird spacing issues when the data could instead be interpolated and show up more nicely.
1 2 3 4 5 6 7 8 9 10 11 |
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
stat |
The statistical transformation to use on the data for this layer, as a string. |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
interp_res |
The resolution at which the data should be interpolated, in units of # per y-axis value. 1 is a good fit for depth data, and 10-20 is good for latitudinal data. |
... |
Other arguments passed on to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.