asPlotlyText: Plotly text

Description Usage Arguments Value Examples

View source: R/plot.R

Description

Convert a data.frame to plotly text

Usage

1

Arguments

df

A data.frame

Value

A character vector of the length of df's number of rows.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
set.seed(1)

X <- big_attachExtdata()
svd <- big_SVD(X, big_scale(), k = 10)

p <- plot(svd, type = "scores")

pop <- rep(c("POP1", "POP2", "POP3"), c(143, 167, 207))
df <- data.frame(Population = pop, Index = 1:517)

plot(p2 <- p + ggplot2::aes(text = asPlotlyText(df)))
## Not run: plotly::ggplotly(p2, tooltip = "text")

bigstatsr documentation built on April 5, 2021, 5:08 p.m.