I am new to ggplot2 and would appreciate a little help please
I am playing around with famous IRIS flower dataset.
This code is working great in Python 3 script.
c_col = ["#2f4858", "#f6ae2d", "#f26419", "#33658a", "#55dde0", "#2f4858", "#2f4858", "#f6ae2d", "#f26419", "#33658a", "#55dde0", "#2f4858"] fig = ( ggplot(data.dropna(subset = ['sepal_length'])) + geom_point( aes(x = 'sepal_length', y = 'sepal_width'), fill = c_col, color = 'blue' ) + labs( title ='Relationship between sepal_length and sepal_width', x = 'sepal_length', y = 'sepal_width', ))
I was wondering how to add a feature to plot three different colors depending on flower species... above code plots all three flower species in BLUE color... but I would like to have three colors in my Scatered diagram... so that every flower specie is in its own color.
Waiting your reply!
Many, many thanks!