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

Adding reference boxes screws up scale limits #7

Open
cwickham opened this issue Apr 23, 2013 · 0 comments
Open

Adding reference boxes screws up scale limits #7

cwickham opened this issue Apr 23, 2013 · 0 comments

Comments

@cwickham
Copy link

Here's an example

n <- 10
df <- data.frame(y = rnorm(4*n), 
  group = rep(letters[1:4], each = n),
  long = rep(c(-120,  -80, -110, -70), each =  n),
  lat = rep(c(45, 30), each =  2*n))

ggplot(df, aes(long, lat)) +
  geom_subplot(aes(long, lat, group = group,
    subplot = geom_histogram(aes(y, ..count..))))

# now try to add reference boxes
ggplot(df, aes(long, lat)) +
  geom_subplot(aes(long, lat, group = group,
    subplot = geom_histogram(aes(y, ..count..))), ref = ref_box())
# scale limits are way too big!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant