Skip to content

Commit 1761ed3

Browse files
committed
better defaults for cex.axis
1 parent 6b2dd7f commit 1761ed3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

R/plot.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ bb2merc = function(x, cls = "ggmap") { # return bbox in the appropriate "web mer
793793
#' @param cex.axis see \link{par}
794794
.image_scale = function(z, col, breaks = NULL, key.pos, add.axis = TRUE,
795795
at = NULL, ..., axes = FALSE, key.length, logz = FALSE, lab = "",
796-
cex.axis = 1) {
796+
cex.axis = par("cex.axis")) {
797797
if (!is.null(breaks) && length(breaks) != (length(col) + 1))
798798
stop("must have one more break than colour")
799799
stopifnot(is.character(lab) || is.expression(lab))
@@ -870,7 +870,7 @@ bb2merc = function(x, cls = "ggmap") { # return bbox in the appropriate "web mer
870870
#' @export
871871
#' @param key.width ignore
872872
.image_scale_factor = function(z, col, key.pos, add.axis = TRUE,
873-
..., axes = FALSE, key.width, key.length, cex.axis = 1) {
873+
..., axes = FALSE, key.width, key.length, cex.axis = par("cex.axis")) {
874874

875875
n = length(z)
876876
# TODO:

man/stars.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)