points | R Documentation |
Creates points on gsplot. See points
for more details.
points(object, ...)
object |
gsplot object |
... |
Further graphical parameters may also be supplied as arguments. See 'Details'. |
Additional graphical parameter inputs:
x
vector indicating the x-coordinate(s) of the plot point(s)
y
vector indicating the y-coordinate(s) of the plot point(s)
xlim
vector containing the lower and upper limit for the x-axis
ylim
vector containing the lower and upper limit for the y-axis
col, pch
parameters describing the color and type of point, respectively
legend.name
name that appears in the legend, see legend
for more legend parameters
error_bar
add error bars to the defined points, see error_bar
for arguments, must add arguments as a list
callouts
add callouts and text to the defined points, see callouts
for arguments, must add arguments as a list
points
gs <- gsplot()
gsNew <- points(gs, y=1, x=2, col="blue", pch=18,frame.plot=FALSE)
gsNew <- points(gsNew, c(3,4,3), c(2,4,6), ylim=c(0,10))
gsNew
gs <- gsplot() %>%
points(x=1:5, y=1:5, xlim=c(0,10), ylim=c(0,10),
callouts(labels=c(rep(NA, 4), "oh")),
error_bar(offset.up=1))
gs
gs2 <- gsplot() %>%
points(1:5, c(1,10,100,1000,10000), log="y", las=1) %>%
axis(side=c(2,4), labels=FALSE, n.minor=4)
gs2
gs <- points(gsplot(), c(0,3), c(2,4), callouts(labels=c('dogs','cats')))
gs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.