Skip to main content
The 2024 Developer Survey results are live! See the results

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.

-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 ...
gmerritt123's user avatar
-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 ...
ZAWD's user avatar
  • 661
-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<- ...
S.EB's user avatar
  • 2,198
-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....
Ahmad's user avatar
  • 9,478
-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 ...
Gotmadstacks's user avatar

15 30 50 per page
1
341 342 343 344
345