-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathis.gsplot.Rd
More file actions
38 lines (36 loc) · 967 Bytes
/
is.gsplot.Rd
File metadata and controls
38 lines (36 loc) · 967 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
37
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/is_gsplot.R
\name{is.gsplot}
\alias{is.gsplot}
\title{gsplot is.gsplot}
\usage{
is.gsplot(object)
}
\arguments{
\item{object}{gsplot object}
}
\description{
Checks to see whether the object is valid for gsplot.
}
\details{
Checks to see that the class of the object is \code{gsplot}, and
that there is only one \code{par} arguement in the object list.
}
\examples{
gs <- gsplot() \%>\%
points(x=1:5, y=1:5, legend.name="Stuff") \%>\%
lines(2:6, y=2:6, xlim=c(0,10), ylim=c(0,10)) \%>\%
lines(x=c(1.5,6), y=c(9,3), col="blue") \%>\%
axis(side=c(3,4),labels=FALSE) \%>\%
legend("topright")
gs
is.gsplot(gs)
gs <- gsplot() \%>\%
par(col.axis="red") \%>\%
points(y=c(3,1,2), x=1:3, xlim=c(0,NA),ylim=c(0,NA),
col="blue", pch=18, legend.name="Points", xlab="Index") \%>\%
axis(side=c(3,4), labels=FALSE) \%>\%
par(las=2)
gs
is.gsplot(gs)
}