enscatter: Correlation scatter plot with encircling.

Description Usage Arguments Value Examples

View source: R/enscatter.R

Description

enscatter function will draw scatter plot with encircling for correlation analysis.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
enscatter(
  data,
  x,
  y,
  col.var = NULL,
  size.var = NULL,
  subset,
  title = NULL,
  subtitle = NULL,
  xtitle = NULL,
  ytitle = NULL,
  caption = NULL
)

Arguments

data

input data.frame

x

x variable

y

y variable

col.var

color variable

size.var

size variable

subset

subset list type

title

main title

subtitle

subtitle

xtitle

x axis title

ytitle

y axis title

caption

caption

Value

An object of class ggplot

Examples

1
2
3
4
5
6
7
8
#make subset
iris_select1<-iris[iris$Species=="setosa",]
iris_select2<-iris[iris$Species=="versicolor",]
iris_select3<-iris[iris$Species=="virginica",]
iris_subset<-list(iris_select1,iris_select2,iris_select3)
#scatter plot with encircling
plot<- enscatter(data=iris, x="Sepal.Length", y="Petal.Length", col.var = "Species", subset = iris_subset)
plot

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