Description Usage Arguments Value Author(s) Examples
'ggfocus()' is deprecated. Add focus scales with 'scale_color_focus()', 'scale_fill_focus()', 'scale_alpha_focus()', ... instead.
Creates a 'ggplot' object with focus scales from another 'ggplot' object.
1 2 3 4 5 6 7 8 9 10 |
p |
a 'ggplot' object. |
var |
Sets. |
focus_levels |
levels to be highlited. |
focus_aes |
list of aesthetics used to highlight. "color","alpha" and "fill" are available. |
color_focus |
vector of colors (or a single color) for focused levels. |
color_other |
color for non-focused levels. |
alpha_focus, alpha_other |
alpha value for focused and non-focused levels. |
a ggplot object with focusing scales.
Victor Freguglia
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.