Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 343d985

Browse files
committedJul 21, 2022
Add grid.point.size
1 parent 3b1c790 commit 343d985

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
 

‎R/metroglyphGrob.R

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#' @param grid.levels A list of grid levels (as vectors) corresponding to the
2727
#' values in \code{z} at which points are to be plotted. The values in
2828
#' \code{z} should be present in the list specified.
29-
#' @param point.size The size of the grid points in native units.
29+
#' @param grid.point.size The size of the grid points in native units.
3030
#'
3131
#' @family grobs
3232
#'
@@ -236,7 +236,7 @@
236236
#' lwd.ray = 3,
237237
#' draw.grid = TRUE, grid.levels = gl,
238238
#' col.ray = RColorBrewer::brewer.pal(6, "Dark2"),
239-
#' col.points = NA, point.size = 20)
239+
#' col.points = NA, grid.point.size = 20)
240240
#'
241241
#' grid::grid.newpage()
242242
#' grid::grid.draw(mglyph1)
@@ -258,7 +258,7 @@ metroglyphGrob <- function(x = .5, y = .5, z,
258258
lineend = c("round", "butt", "square"),
259259
grid.levels = NULL,
260260
draw.grid = FALSE,
261-
point.size = 10) {
261+
grid.point.size = 10) {
262262

263263
lineend <- match.arg(lineend)
264264

@@ -369,7 +369,7 @@ metroglyphGrob <- function(x = .5, y = .5, z,
369369
gpointsGrob <- grid::pointsGrob(gridx, gridy,
370370
# default.units = "native",
371371
pch = 20,
372-
size = grid::unit(point.size,
372+
size = grid::unit(grid.point.size,
373373
"native"),
374374
gp = grid::gpar(col = col.points,
375375
alpha = alpha))

‎man/metroglyphGrob.Rd

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Failed to load comments.