-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathprint.gsplot.Rd
More file actions
36 lines (33 loc) · 953 Bytes
/
print.gsplot.Rd
File metadata and controls
36 lines (33 loc) · 953 Bytes
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/print.R
\name{print.gsplot}
\alias{print.gsplot}
\title{gsplot show}
\usage{
\method{print}{gsplot}(x, ...)
}
\arguments{
\item{x}{gsplot object}
\item{\dots}{Further graphical parameters may also be supplied as arguments.}
}
\description{
Shows gsplot in the plot window.
}
\examples{
gs <- gsplot() \%>\%
points(1, 2, legend.name="Cool points", xlim=c(0,NA)) \%>\%
lines(x=1:5, y=1:5, legend.name="Cool lines", ylab='taco night') \%>\%
legend(location="topleft")
print(gs)
# dropping 'print()' around the object works the same way
# (however, use 'print()' explicitly when in a loop)
gs <- gsplot() \%>\%
points(1, 2, legend.name="Cool points", xlim=c(0,NA)) \%>\%
lines(x=1:5, y=1:5, legend.name="Cool lines", ylab='taco night') \%>\%
legend(location="topleft")
gs
gs <- gsplot() \%>\%
points(1, 2) \%>\%
lines(x=1:5, y=1:5, side=c(3,4))
gs
}