ggPair: Make an interactive scatter and line plot

Description Usage Arguments Examples

Description

Make an interactive scatter and line plot

Usage

1
2
ggPair(data, vars = NULL, colorvar = NULL, idcolor = TRUE,
  horizontal = FALSE, interactive = FALSE)

Arguments

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

Examples

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)

cardiomoon/moonBook2 documentation built on May 13, 2019, 12:40 p.m.