briandk/granovaGG — Issue #148: R CMD check produces "no visible binding for global variables" warnings
Author: briandk
Created: 2012-02-25 00:08:52+00:00
State: open

Because in code like this:

```r
GroupMeansByContrast <- function(owp) {
return(
geom_point(
aes(
x = contrast,
y = group.mean,
fill = factor("Group Means")
),
size = I(3),
shape = 24,
color = "black",
alpha = 0.50,
data = owp$summary
)
)
}
```

The variables `contrast` and `group.mean` aren't assigned in the function (or anywhere obvious in top-level).

Harlan Harris suggests using `aes_string()`: http://stackoverflow.com/a/9439360/180626

[1]: http://stackoverflow.com/a/9439360/180626