Permalink
Browse files

allow variable names to be pre-defined character strings

  • Loading branch information...
1 parent d93efee commit 803b63760b2f57b8dc5995550b2b76a56c4aca8b @yihui yihui committed Jul 7, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 R/qscatter.R
View
@@ -53,6 +53,8 @@ qscatter = function(x, y, data, main = '', xlim = NULL, ylim = NULL,
## set default xlab/ylab if not provided
if (is.null(xlab)) meta$xlab = meta$xvar
if (is.null(ylab)) meta$ylab = meta$yvar
+ if (!(meta$xvar %in% names(data))) meta$xvar = x
+ if (!(meta$yvar %in% names(data))) meta$yvar = y
## tour: color, size, transparency could be decided by proj3
if ('proj3' %in% colnames(data)) {

0 comments on commit 803b637

Please sign in to comment.