visualize_data: Visualize the data with ggplot

Description Usage Arguments Value Examples

View source: R/visualize_data.R

Description

Visualize data with simple graphical techniques such as boxplots, density plots, histograms.

Usage

1
2
3
4
5
visualize_data(
  long_data,
  plot_type = c("boxplot", "density", "histogram"),
  facet = T
)

Arguments

long_data

Long format data

plot_type

A character string with for choosing the the visual demonstration. The current options are "boxplot", "density", and "histogram".

facet

A logical value. If true, the plot will be faceted with the facet column "variables".

Value

a ggplot object

Examples

1
2
3
4
data(iris)
iris_m <- iris
colnames(iris_m) <- "variables"
visualize_data(iris_m)

chenyenting1998/ecomaestro documentation built on Dec. 19, 2021, 3:04 p.m.