plot.eda: Plot method for EDA objects

View source: R/plotting_methods.R

plot.edaR Documentation

Plot method for EDA objects

Description

Plots distribution of the given EDA object.

Usage

## S3 method for class 'eda'
plot(
  x,
  type = c("default", "bar", "violin", "box", "hist", "qq"),
  point_color = "steelblue",
  point_alpha = 0.5,
  point_hjitter = 0.05,
  point_wjitter = 0.1,
  fill_color = "steelblue",
  line_color = "orangered3",
  txt_size = 2.75,
  signif_digits = 2,
  cust_theme = ggplot2::theme_classic(),
  plot_title = NULL,
  plot_subtitle = NULL,
  ...
)

Arguments

x

eda object, created by eda.

type

plot type. 'default' is bar for factors and violin for numerics. 'bar' is available for factor-type EDAs. 'violin', 'box', 'hist' and 'qq' are available for numeric-type objects.

point_color

color of the plot points.

point_alpha

alpha of the plot points.

point_hjitter

point jitter height.

point_wjitter

point jitter width.

fill_color

color of the bars and violins.

line_color

color of the qqline in the qq plot.

txt_size

size of the plot label text.

signif_digits

significant digits used for rounding of the statistic summary.

cust_theme

custom ggplot2 theme.

plot_title

text to be presented in the plot title.

plot_subtitle

text to be presented in the plot subtitle.

...

extra arguments passed to geom_violin, geom_histogram or geom_boxplot.

Details

the summary of EDA is presented in the plot tag. The type conversion is done prior to plotting.

Value

a ggplot.


PiotrTymoszuk/ExDA documentation built on Nov. 17, 2024, 5:46 p.m.