Description Usage Arguments Value Examples
enscatter function will draw scatter plot with encircling for correlation analysis.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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 |
An object of class ggplot
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.