plotDataExplorer: Default DataExplorer plotting function

Description Usage Arguments Details Value See Also Examples

View source: R/plot.r

Description

S3 method for plotting various DataExplorer objects

Usage

1
plotDataExplorer(plot_obj, title, ggtheme, theme_config, ...)

Arguments

plot_obj

plot object

title

plot title

ggtheme

complete ggplot2 themes

theme_config

a list of configurations to be passed to theme

...

other arguments to be passed

Details

To change default font family and size, you may pass base_size and base_family to ggtheme options, e.g., ggtheme = theme_gray(base_size = 15, base_family = "serif")

theme_config argument expects all inputs to be wrapped in a list object, e.g., to change the text color: theme_config = list("text" = element_text(color = "blue"))

Value

invisibly return the named list of ggplot objects

See Also

plotDataExplorer.grid plotDataExplorer.single plotDataExplorer.multiple

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(ggplot2)
# Update theme of any plot objects
plot_missing(airquality, ggtheme = theme_light())
plot_missing(airquality, ggtheme = theme_minimal(base_size = 20))

# Customized theme components
plot_bar(
  data = diamonds,
  theme_config = list(
  "plot.background" = element_rect(fill = "yellow"),
  "aspect.ratio" = 1
  )
)

boxuancui/eda documentation built on Dec. 9, 2020, 11:11 p.m.