Re: [R] scatter plot coloring problem

2018-07-20 Thread PIKAL Petr
Hi Values in conv_df are almost same for each Error level > aggregate(conv_df$Intercept, list(conv_df$Error), mean) Group.1 x 1 High CML error -3.226313 2 Low CML error -3.226536 3 Med CML error -3.226422 > aggregate(conv_df$Slope, list(conv_df$Error), mean) Group.1

Re: [R] scatter plot coloring problem

2018-07-20 Thread Micha Silver
On 07/20/2018 02:01 PM, Micha Silver wrote: On 07/20/2018 01:28 PM, Bert Gunter wrote: Nothing attached. The mail server strips most attachments for security. Here is a (slightly shorter) repex. The fourth plot shows the problem. The first three are as expected. library(ggplot2) strat_d

Re: [R] scatter plot coloring problem

2018-07-20 Thread Micha Silver
On 07/20/2018 01:28 PM, Bert Gunter wrote: Nothing attached. The mail server strips most attachments for security. Here is my repex, inline: library(ggplot2) conv_df <- structure(list(Adjustment = structure(c(1L, 2L, 3L, 4L, 5L, 1L,     2L, 3L, 4L, 5L, 1

Re: [R] scatter plot coloring problem

2018-07-20 Thread Bert Gunter
Nothing attached. The mail server strips most attachments for security. See the posting guide below and ?dput for how to include data. + We need your faulty code also, of course. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking thing

[R] scatter plot coloring problem

2018-07-20 Thread Micha Silver
Hello: I have two data frames (subsetted from a larger one). I am plotting scatterplots with ggplot2 and coloring by different variables. When using one of the variables "Error" with one of the dataframes "conv_df" only a single color is displayed. All the other variables show colors as expec