r - Coloring sets in plotly polar chart adds extra points? -
i'm using plotly make scatter radar plot , i'm having issues when setting colors in each set. whenever set "color" parameter plot shows points not in original data.frame.
small example:
df r t my_sets 1 0.8090 108.00000000000000000 set1 2 0.3090 -0.00000000000001029 set3 3 0.8090 35.99999999999999289 set1 4 0.5871 103.61382244080326132 set2 5 0.6489 154.43699940042691310 set2 6 0.3629 175.61382244080323289 set3
if this:
p <- plot_ly(data=df, r=r, t=t, mode = "markers") layout(p, title = "simple_test", plot_bgcolor = torgb("grey90"))
however when this:
p <- plot_ly(data=df, r=r, t=t, color = my_sets, mode = "markers") layout(p, title = "simple_test", plot_bgcolor = torgb("grey90"))
i 2 points r>1 not in original df.
any idea problem is? if run hobbs example in plotly website dont seem have problem...
Comments
Post a Comment