File: subvis.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 (37 lines) | stat: -rw-r--r-- 889 bytes parent folder | download | duplicates (3)
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
28
29
30
31
32
33
34
35
36
37
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/subvis.R
\name{subvis}
\alias{subvis}
\title{Create a subvisualisation.}
\usage{
subvis(vis, ..., data = NULL, width = NULL, height = NULL)
}
\description{
Create a subvisualisation.
}
\examples{
# Examples don't work yet
\dontrun{
library(dplyr, warn.conflicts = FALSE)

small <- nasaweather::atmos \%>\%
  filter(lat <= -11.217391, long <= -106.287, year == 1995) \%>\%
  group_by(long, lat)
small \%>\%
  ggvis(~long, ~lat) \%>\%
  layer_points()

small \%>\%
  ggvis(~long, ~lat) \%>\%
  subvis(width := 100, height := 100, stroke := "red") \%>\%
    layer_points(~month, ~ozone)

small \%>\%
  ggvis(~long, ~lat) \%>\%
  subvis(width := 100, height := 100, stroke := "red") \%>\%
    layer_points(~month, ~ozone) \%>\%
    add_axis("x", ticks = 3) \%>\%
    add_axis("y", ticks = 3)
}
}
\keyword{internal}