Description Usage Arguments Examples
Make an interactive scatter and line plot
1 2 |
data |
a data.frame |
vars |
names of columns which are incuded in plot |
colorvar |
names of column which is assigned as a colour variable |
idcolor |
Logical cvalue. If TRUE, row numbers uses as a color variable |
horizontal |
Logical cvalue. If TRUE, coord_flip() function is used to make a horizontal plot |
interactive |
Logical cvalue. If TRUE, an interactive plot using ggiraph() function will be returned |
1 2 3 4 5 6 7 8 9 | require(ggplot2)
require(ggiraph)
ggPair(iris,interactive=TRUE)
ggPair(iris[3:5],interactive=TRUE)
ggPair(iris,colorvar="Species",interactive=TRUE)
ggPair(iris,colorvar="Species",horizontal=TRUE, interactive=TRUE)
ggPair(iris,vars=c("Sepal.Length","Sepal.Width"),interactive=TRUE)
ggPair(iris,vars=c("Sepal.Length","Sepal.Width"),colorvar="Species",interactive=TRUE)
ggPair(iris,vars=c("Sepal.Length","Sepal.Width"),colorvar="Species",horizontal =TRUE,interactive=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.