alpha does not work in geom_raster like it does in geom_tile #596

Closed
cwickham opened this Issue Jun 25, 2012 · 0 comments

Comments

Projects
None yet
2 participants
Contributor

cwickham commented Jun 25, 2012

df <- expand.grid(x = 1:5, y = 1:5)
df$z <- rnorm(df$x)
qplot(x, y, data=df, geom = "tile", fill = z)
# works as expected
qplot(x, y, data=df, geom = "tile", alpha = z)

# same as geom_tile
qplot(x, y, data=df, geom = "raster", fill = z)
# UNEXPECTED not the same as geom tile
qplot(x, y, data=df, geom = "raster", alpha  = z)

kohske added a commit to kohske/ggplot2 that referenced this issue Jun 25, 2012

kohske added a commit to kohske/ggplot2 that referenced this issue Jun 25, 2012

@kohske kohske closed this in e96c7f7 Jun 27, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment