Questions tagged [legend]
A graph legend is commonly used when plotting several sets of data within the same diagram. The legend associates each plot with its corresponding data.
legend
5,165
questions
-3
votes
1
answer
438
views
Want to plot different sized/colored ellipses on matplotlib legend
I have a plot with an assortment of differently sized/colored ellipses and want to create a "general" legend for them, e.g. "big red ellipse means this, small blue ellipse means that" etc.
I have ...
-3
votes
1
answer
599
views
how to add legend in R to a ggplot
I have a problem about R, something should be wrong here, I want to add a legend for the two different variables, one is "Insgesamt_ALL" with red colour,and the other one is "weiblich_ALL" with black ...
-3
votes
1
answer
348
views
Legend is apears in the wrong place in the page (R): not fully shown
I have added the following command to the plot in R:
df<- read.table("filename.csv", header=TRUE, sep=",", stringsAsFactors=FALSE)
tdf=as.data.frame(df[2:ncol(df)])
# draw the plot
bb<- ...
-5
votes
2
answers
360
views
How to add a legend to ggplot when aes are constant for stat_smooth
I tried to plot different smoothings in a single plot:
ggplot(mtcars, aes(x=wt, y = mpg, col="green")) +
geom_point(col='blue') +
stat_smooth(method='loess',linetype="dashed", col="red", span=0....
-6
votes
1
answer
251
views
r - Can you rearrange legend labels in ggplot2? [closed]
Apparently worded it terribly first time so here is what I mean. The legend looks like this:
10%
15%
20%
25%
30%
35%
40%
45%
5%
50%
This is done automatically. Does anyone know if you can ...