Description Usage Arguments Examples
Make an interactive scatter and line plot
1 2 3 4 5 6 7 8 9 10 11 12 |
data |
a data.frame |
mapping |
Set of aesthetic mappings created by aes or aes_. |
rescale |
if true, rescale the data.frame |
idcolor |
Logical. If TRUE, row numbers uses as a color variable |
horizontal |
Logical. If TRUE, coord_flip() function is used to make a horizontal plot |
use.label |
Logical. Whether or not use column label in case of labelled data |
use.labels |
Logical. Whether or not use value labels in case of labelled data |
includeFactor |
Logical. Whether or not include factor variables |
includeAll |
Logical. Whether or not include all variables |
interactive |
Logical. If TRUE, an interactive plot using girafe() function will be returned |
1 2 3 4 5 6 7 8 9 10 11 | require(ggplot2)
require(ggiraph)
require(sjmisc)
require(moonBook)
ggPair(iris,rescale=TRUE,horizontal=TRUE)
ggPair(acs,aes(colour=smoking),horizontal=TRUE,rescale=TRUE)
ggPair(radial,aes(color=male),horizontal=TRUE,rescale=TRUE)
ggPair(mtcars,horizontal=TRUE,rescale=TRUE)
ggPair(iris,rescale=TRUE,horizontal=TRUE,interactive=TRUE)
ggPair(iris,aes(color=Species),rescale=TRUE,interactive=TRUE)
ggPair(iris,aes(x=c(Sepal.Length,Sepal.Width),color=Species),horizontal=TRUE,interactive=TRUE)
|
Loading required package: ggplot2
Loading required package: ggiraph
Loading required package: sjmisc
Loading required package: moonBook
Attaching package: 'moonBook'
The following objects are masked from 'package:ggiraphExtra':
addLabelDf, getMapping
Warning messages:
1: Removed 496 rows containing missing values (geom_interactive_point).
2: Removed 496 rows containing missing values (geom_path).
Warning messages:
1: Removed 18 rows containing missing values (geom_interactive_point).
2: Removed 18 rows containing missing values (geom_path).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.