Plot data frames with manual color



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)


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.


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