plot.transform: Visualize Information for an "transform" Object

Description Usage Arguments See Also Examples

Description

Visualize two kinds of plot by attribute of transform class. The transformation of a numerical variable is a density plot.

Usage

1
2
## S3 method for class 'transform'
plot(x, typographic = TRUE, ...)

Arguments

x

an object of class "transform", usually, a result of a call to transform().

typographic

logical. Whether to apply focuses on typographic elements to ggplot2 visualization. The default is TRUE. if TRUE provides a base theme that focuses on typographic elements using hrbrthemes package.

...

arguments to be passed to methods, such as graphical parameters (see par).

See Also

transform, summary.transform.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Standardization ------------------------------
creatinine_minmax <- transform(heartfailure$creatinine, method = "minmax")
creatinine_minmax
summary(creatinine_minmax)

plot(creatinine_minmax)

# Resolving Skewness  --------------------------
creatinine_log <- transform(heartfailure$creatinine, method = "log")
creatinine_log
summary(creatinine_log)

plot(creatinine_log)

plot(creatinine_log, typographic = FALSE)

bit2r/kodlookr documentation built on Dec. 19, 2021, 9:49 a.m.