plot.partial_dep {hstats} | R Documentation |
Plots "partial_dep" Object
Description
Plot method for objects of class "partial_dep". Can do (grouped) line plots or heatmaps.
Usage
## S3 method for class 'partial_dep'
plot(
x,
color = getOption("hstats.color"),
swap_dim = FALSE,
viridis_args = getOption("hstats.viridis_args"),
facet_scales = "fixed",
rotate_x = FALSE,
show_points = TRUE,
d2_geom = c("tile", "point", "line"),
...
)
Arguments
x |
An object of class "partial_dep". |
color |
Color of lines and points (in case there is no color/fill aesthetic).
The default equals the global option |
swap_dim |
Switches the role of grouping and facetting (default is |
viridis_args |
List of viridis color scale arguments, see
|
facet_scales |
Value passed as |
rotate_x |
Should x axis labels be rotated by 45 degrees? |
show_points |
Logical flag indicating whether to show points (default) or not. No effect for 2D PDPs. |
d2_geom |
The geometry used for 2D PDPs, by default "tile". Option "point" is useful, e.g., when the grid represents spatial points. Option "line" produces lines grouped by the second variable. |
... |
Arguments passed to geometries. |
Value
An object of class "ggplot".
See Also
See partial_dep()
for examples.