File: add_data.Rd

package info (click to toggle)
r-cran-ggvis 0.4.7%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,716 kB
  • sloc: javascript: 7,373; sh: 25; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 752 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggvis.R
\name{add_data}
\alias{add_data}
\title{Add dataset to a visualisation}
\usage{
add_data(vis, data, name = deparse2(substitute(data)), add_suffix = TRUE)
}
\arguments{
\item{vis}{Visualisation to modify.}

\item{data}{Data set to add.}

\item{name}{Data of data - optional, but helps produce informative
error messages.}

\item{add_suffix}{Should a unique suffix be added to the data object's ID?
This should only be FALSE when the spec requires a data set with a
 specific name.}
}
\description{
Add dataset to a visualisation
}
\examples{
mtcars \%>\% ggvis(~mpg, ~wt) \%>\% layer_points()
NULL \%>\% ggvis(~mpg, ~wt) \%>\% add_data(mtcars) \%>\% layer_points()
}