Rev 68948 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/grid/man/grid.points.Rd% Part of the R package, https://www.R-project.org% Copyright 1995-2020 R Core Team% Distributed under GPL 2 or later\name{grid.points}\alias{grid.points}\alias{pointsGrob}\title{Draw Data Symbols}\description{These functions create and draw data symbols.}\usage{grid.points(x = stats::runif(10),y = stats::runif(10),pch = 1, size = unit(1, "char"),default.units = "native", name = NULL,gp = gpar(), draw = TRUE, vp = NULL)pointsGrob(x = stats::runif(10),y = stats::runif(10),pch = 1, size = unit(1, "char"),default.units = "native", name = NULL,gp = gpar(), vp = NULL)}\arguments{\item{x}{numeric vector or unit object specifying x-values.}\item{y}{numeric vector or unit object specifying y-values.}\item{pch}{numeric or character vector indicating what sort ofplotting symbol to use. See \code{\link{points}} for theinterpretation of these values, and note \code{fill} below.}\item{size}{unit object specifying the size of the plotting symbols.}\item{default.units}{string indicating the default units to useif \code{x} or \code{y} are only given as numeric vectors.}\item{name}{character identifier. }\item{gp}{an \R object of class \code{"gpar"}, typically the outputfrom a call to the function \code{\link{gpar}}. This is basicallya list of graphical parameter settings; note that \code{fill} (andnot \code{bg} as in package \pkg{graphics} \code{\link{points}}) isused to \dQuote{fill}, i.e., color the background of symbols with\code{pch = 21:25}.}\item{draw}{logical indicating whether graphics output should be produced.}\item{vp}{A Grid viewport object (or NULL).}}\details{Both functions create a points grob (a graphical object describingpoints), but only \code{grid.points} draws the points (and then onlyif \code{draw} is \code{TRUE}).}\value{A points \code{\link{grob}}. \code{grid.points} returns the value invisibly.}\author{Paul Murrell}\seealso{\link{Grid},\code{\link{viewport}}}\keyword{dplot}