Hi, I was wondering if there was a way of automatically assigning a color to each bar when doing a bar plot (Plots.bar), something similar to color=:variable in Gadfly.
My data looks like this:
| Var1 | Var2 | Var3 |
|---|---|---|
| 1 | 0.000224135 | APR |
| 1 | 7.60581e-6 | NAPR |
| 1 | 0.0025156 | SF |
| 2 | 4.79794e-5 | APR |
| 2 | 0.00057933 | NAPR |
| 2 | 0.0051411 | SF |
This is how I would do it with Gadfly:
figure = Gadfly.plot(
df,
x=:Var1,
y=:Var2,
color=:Var3,
Geom.bar(position=:stack))
But I need to use Plots.
Thanks a lot!