Plot data frames with manual color

plotting
gadfly

#1

Hello, I’m trying to plot some complex data frames, a small example could be as following, but with manually set colors instead of the default color it produce. Could anyone help?

using RDatasets
plot(dataset("car", "SLID"), x="Wages", color="Language", Geom.histogram)

#2

Perhaps nice to mention this is using Gadfly. There are several good plotting packages for Julia.
Try checking out the keyword Scale.color_discrete_manual, I’d recommend combining this with a package like Colorbrewer.jl or PerceptualColorMaps.jl.


#3

Yes, that’s what I need. Thanks!!