Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about scale-color-manual

Read more about scale-color-manual

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - scale-color-manual

How to fix the legend for a grouped scatter plot added with geom_ablines

I want to make a scatter plot with two different groups (based on Size) each plotted with specified colors (Blue and Red). In addition, I want to add 4 geom_ablines to the scatter plot with the same B...
test-img

Muhammad Usama Ashraf

r

ggplot2

legend

scatter-plot

scale-color-manual

Votes: 0

Answers: 2

Latest Answer

For you colour prob, try this : fig <- ggplot(scalingdata, aes(x=Re, y=Sw, colour=Size)) + geom_point( size=3) + scale_color_manual(values=cols) + theme_minimal() + theme(panel.background ...
test-img

Florian M.

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved