geom_beeswarm_interactive: Geometry for Interactive Bee Swarm Points

View source: R/NanoStringRccSet-ggplot.R

geom_beeswarm_interactiveR Documentation

Geometry for Interactive Bee Swarm Points

Description

The interactive version of geom_beeswarm from ggbeeswarm.

Usage

geom_beeswarm_interactive(mapping = NULL, data = NULL,
                          priority = c("ascending", "descending", "density",
                                       "random", "none"),
                          cex = 1, groupOnX = NULL, dodge.width = 0,
                          stat = "identity", na.rm = FALSE, show.legend = NA,
                          inherit.aes = TRUE, ...)

Arguments

mapping

The aesthetic mapping. See geom_beeswarm.

data

The data to be displayed at this layer. See geom_beeswarm.

priority

Method used to perform point layout. See geom_beeswarm.

cex

Scaling for adjusting point spacing. See geom_beeswarm.

groupOnX

Indicator for jittering on x-axis. See geom_beeswarm.

dodge.width

Dodge amount for points from different aesthetic groups. See geom_beeswarm.

stat

The statistical transformation to use on the data for this layer. See geom_beeswarm.

na.rm

Indicator for removing missing values with a warning. See geom_beeswarm.

show.legend

Indicator for including this layer in the legend. See geom_beeswarm.

inherit.aes

Indicator for inheriting the aesthetics. See geom_beeswarm.

...

Additional arguments. See geom_beeswarm.

Value

The interactive geometry based on geom_beeswarm.

Author(s)

Patrick Aboyoun

See Also

geom_beeswarm

Examples

# Create NanoStringRccSet from data files
datadir <- system.file("extdata", "3D_Bio_Example_Data",
                       package = "NanoStringNCTools")
rccs <- dir(datadir, pattern = "SKMEL.*\\.RCC$", full.names = TRUE)
rlf <- file.path(datadir, "3D_SolidTumor_Sig.rlf")
pheno <- file.path(datadir, "3D_SolidTumor_PhenoData.csv")
solidTumor <-
  readNanoStringRccSet(rccs, rlfFile = rlf, phenoDataFile = pheno)

eg_data <- as.data.frame(assayDataElement(solidTumor, "exprs")[1:5, 1])
eg_data[["tooltip"]] <- names(eg_data)
geom_beeswarm_interactive(aes_string(tooltip = "tooltip"), data=eg_data)

Nanostring-Biostats/NanoStringNCTools documentation built on April 19, 2024, 8:21 p.m.