Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Combing Two Legends into One using R

$
0
0

@Surya1987 wrote:

Here is the code which I used to plot a scatter plot. Here Two legends are getting generated because as there is colour and shape arguement. However I want the combination of that. Here is the existing code: I also want to have a colour green start with "SEO" and others as green.

ggplot(DF3, aes_string(x="AvgECSN", y="AvgResult", shape="Engine.Line", color="Region"))+
geom_jitter(size=4)+scale_shape_manual(values=1:nlevels(DF3$Engine.Line)) + scale_colour_manual(values=c(3,rep(2,10)))

Existing.pdf (5.5 KB)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles