I have a dictionary (Y) and I want to plot its values using scatter(x,y).
What I want is for the colors of the markers to be either blue or red (or any other two colors) corresponding to 0 and 1 read from another dictionary with the same keys.
Let’s say as a simple example:
Y = Dict("A" => 15, "B" => 20, "C" => 45)
Z = Dict("A" => 0 , "B" => 1, "C" => 0)
This is what I have so far:
using Plots
X= 1:length(Y)
p=scatter(X, [values(Y)...];color= [values(Z)...])
but the colors don’t match the values in z dictionary.