Skip to content

Commit b76a286

Browse files
author
Lindsay Carr
committed
fix cex in callouts issue
1 parent ffdeebe commit b76a286

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

R/callouts.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ callouts.gsplot <- function(object, ..., side=c(1,2)){
4141
#'
4242
#' @rdname callouts
4343
#' @export
44-
callouts.default <- function(x, y=NULL, labels=NA, length=0.1, angle='auto', ...){
44+
callouts.default <- function(x, y=NULL, labels=NA, length=0.1, angle='auto', cex=1, ...){
4545

4646
if (is.null(y)) {
4747
warning("y=NULL not currently supported in callouts.default")
@@ -97,6 +97,6 @@ callouts.default <- function(x, y=NULL, labels=NA, length=0.1, angle='auto', ...
9797
pos[angle > 135 & angle <= 225] <- 2
9898

9999
segments(x0=x, y0=y, x1=x1, y1=y1, ...)
100-
text(x=x1, y=y1, labels=labels, pos=pos,...)
100+
text(x=x1, y=y1, labels=labels, pos=pos, cex=cex, ...)
101101

102102
}

man/callouts.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
callouts(object, ...)
99

1010
callouts.default(x, y = NULL, labels = NA, length = 0.1, angle = "auto",
11-
...)
11+
cex = 1, ...)
1212
}
1313
\arguments{
1414
\item{object}{gsplot object}

0 commit comments

Comments
 (0)