ggPair: Make an interactive scatter and line plot

Description Usage Arguments Examples

View source: R/ggPair.R

Description

Make an interactive scatter and line plot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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

 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)

Example output

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). 

ggiraphExtra documentation built on Oct. 23, 2020, 7:39 p.m.