Learn R Programming

ggiraphExtra (version 0.1.0)

ggPair: Make an interactive scatter and line plot

Description

Make an interactive scatter and line plot

Usage

ggPair(data, mapping = NULL, idcolor = TRUE, horizontal = FALSE,
  interactive = FALSE)

Arguments

data

a data.frame

mapping

Set of aesthetic mappings created by aes or aes_.

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

Examples

Run this code
# NOT RUN {
require(ggplot2)
require(ggiraph)
ggPair(iris,interactive=TRUE)
ggPair(iris[3:5],interactive=TRUE)
ggPair(iris,aes(color=Species),interactive=TRUE)
ggPair(iris,aes(color=Species),horizontal=TRUE, interactive=TRUE)
ggPair(iris,aes(x=c(Sepal.Length,Sepal.Width)),interactive=TRUE)
ggPair(iris,aes(x=c(Sepal.Length,Sepal.Width),color=Species),interactive=TRUE)
# }

Run the code above in your browser using DataLab