margin: Correlation Marginal Histogram/Box plot.

Description Usage Arguments Value Examples

View source: R/marginhist_marginbox.R

Description

margin function will draw Marginal Histogram/Box plot for correlation analysis.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
margin(
  data,
  x,
  y,
  type,
  title = NULL,
  subtitle = NULL,
  xtitle = NULL,
  ytitle = NULL,
  caption = NULL
)

Arguments

data

input data.frame

x

x variable

y

y variable

type

"hist" for histogram,"boxplot" for box plot

title

main title

subtitle

subtitle

xtitle

x axis title

ytitle

y axis title

caption

caption

Value

An object of class ggplot

Examples

1
2
plot<- margin(data=mpg,x="cty",y="hwy",type="hist")
plot

HeeseokMoon/ggedachart documentation built on Dec. 31, 2020, 12:59 p.m.