ggPair {ggiraphExtra} | R Documentation |
Make an interactive scatter and line plot
Description
Make an interactive scatter and line plot
Usage
ggPair(
data,
mapping = NULL,
rescale = FALSE,
idcolor = TRUE,
horizontal = FALSE,
use.label = FALSE,
use.labels = TRUE,
includeFactor = TRUE,
includeAll = FALSE,
interactive = FALSE
)
Arguments
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 |
Examples
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)
[Package ggiraphExtra version 0.3.0 Index]