All Questions
1,757
questions
114
votes
4
answers
150k
views
How to move or position a legend in ggplot2
I'm trying to create a ggplot2 plot with the legend beneath the plot.
The ggplot2 book says on p 112 "The position and justification of legends are controlled by the theme setting legend.position, ...
2
votes
1
answer
4k
views
R: ggplot2, why does my legend show faded colors?
Why is my legend faded in these examples below? Notice how the colours in the legend are not as vivid as the colours in the plot:
library(ggplot2)
r <- ggplot(data = diamonds, aes(x = carat, y =...