Hi all- I am trying to visually assess the fit of a model. The model produces as distribution of predictions and the observation is one point. I would like to overlay the observation onto a violin plot of predictions. For some reason the observation does not display in this simple example:
using Gadfly,DataFrames,Distributions df = DataFrame(x = rep("Observation 1",10000),prediction = rand(Normal(0,1),10000),observation = rep(.5,10000)) plot(df,layer(x = "x",y="prediction",Geom.violin,width = 2),layer(x = "x",y = "observation",Geom.point(),Theme(default_color=colorant"black",default_point_size = 5pt) )) Any assistance would be appreciated.