Description Usage Arguments Author(s) See Also Examples
These functions create faceted shadow plots (all observations are shown in every facet greyed out with the facet's observations shown on top).
1 2 3 4 5 6 7 8 | ggshadow_histogram(data, mapping = aes(), facet_var,
nrow = NULL, ncol = NULL, bg_fill = "grey", bg_alpha = 0.5, ...)
ggshadow_point(data, mapping = aes(), facet_var,
nrow = NULL, ncol = NULL, bg_color = "grey", bg_alpha = 0.5, ...)
ggshadow_line(data, mapping = aes(), facet_var,
nrow = NULL, ncol = NULL, bg_color = "grey", bg_alpha = 0.5, ...)
|
data |
Data frame |
mapping |
Aesthetic mapping as in |
facet_var |
Character string of name of facet variable |
nrow |
Number of rows for faceted plot |
ncol |
Number of columns for faceted plot |
bg_color |
Color of background points/lines |
bg_fill |
Color (fill) of background bars |
bg_alpha |
Alpha value for background points/lines/bars |
... |
Arguments passed to plotted geom |
Charlie Gibbons
ggplot
, geom_histogram
,
geom_point
, geom_line
facet_wrap
from the ggplot
package. The
gghighlight
package provides related functions with somewhat
different functionality.
1 2 3 4 5 6 | ggshadow_histogram(diamonds, aes(carat), "cut")
### Reduce opacity due to overplotting;
### 'alpha' refers to facet points, 'bg_alpha' to shadows
ggshadow_point(diamonds, aes(carat, price), "cut",
alpha = 0.2, bg_alpha = 0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.