Visualization of an object of class "light_importance" via ggplot2::geom_bar()
.
If available, standard errors are added by ggplot2::geom_errorbar()
.
The object returned is of class "ggplot" and can be further customized.
# S3 method for class 'light_importance'
plot(
x,
top_m = Inf,
swap_dim = FALSE,
facet_scales = "fixed",
rotate_x = FALSE,
error_bars = TRUE,
...
)
An object of class "light_importance".
Maximum number of important variables to be returned.
If multiflashlight and one "by" variable or single flashlight with two "by" variables, swap the role of dodge/fill variable and facet variable. If multiflashlight or one "by" variable, use facets instead of colors.
Scales argument passed to ggplot2::facet_wrap()
.
Should x axis labels be rotated by 45 degrees?
Should error bars be added? Defaults to TRUE
.
Only available if light_importance()
was run with multiple permutations
by setting m_repetitions
> 1.
Further arguments passed to ggplot2::geom_bar()
.
An object of class "ggplot".
The plot is organized as a bar plot with variable names as x-aesthetic.
Up to two additional dimensions (multiflashlight and one "by" variable or single
flashlight with two "by" variables) can be visualized by facetting and dodge/fill.
Set swap_dim = FALSE
to revert the role of these two dimensions.
One single additional dimension is visualized by a facet wrap,
or - if swap_dim = FALSE
- by dodge/fill.