Allow alpha as argument to element_rect #759

Closed
dkahle opened this Issue Jan 24, 2013 · 2 comments

Comments

Projects
None yet
4 participants
Contributor

dkahle commented Jan 24, 2013

This will allow for semi-transparent legends when they are put on top of a graphic (map).

Collaborator

wch commented Feb 28, 2013

You can currently use alpha with the alpha() function:

qplot(1:3, 1:3, colour=1:3) +
  theme(legend.background = element_rect(fill=alpha('red', 0.2)),
        legend.position = c(.5, .5))

hadley closed this Feb 24, 2014

function alpha() is (now) in the scales package

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