Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The precedence of partial name matching over the ellipses #1485

Closed
ecoRoland opened this issue Jan 13, 2016 · 0 comments
Closed

The precedence of partial name matching over the ellipses #1485

ecoRoland opened this issue Jan 13, 2016 · 0 comments

Comments

@ecoRoland
Copy link

This leads to trouble when trying to pass n to stat_density2d in geom_density2d.

set.seed(42)
df <- data.frame(x=runif(100),y=runif(100))
library(ggplot2)
ggplot(df,aes(x,y)) + geom_density2d(stat='density2d', n = 100) 
#Error: is.logical(na.rm) is not TRUE

ggplot(df,aes(x,y)) + geom_density2d(stat='density2d', na.rm = TRUE, n = 100) 
#works

Reported here: http://stackoverflow.com/q/34749125/1412059

@hadley hadley closed this as completed in 28f8ae4 Jan 25, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant