[R] Fwd: Re: scatter plot coloring problem

Micha Silver
Sat, 21 Jul 2018 10:36:15 -0000

Hi

On 07/20/2018 03:16 PM, PIKAL Petr wrote:
> Hi
>
> Values in conv_df are almost same for each Error level
Thanks to Petr for help in catching this!

>> 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        x
> 1 High CML error 8.325558
> 2  Low CML error 8.324242
> 3  Med CML error 8.324721
>> boxplot(split(conv_df$Slope, conv_df$Error))
>> boxplot(split(conv_df$Intercept, conv_df$Error))
>>
> so points in ggplot are overplotted and only colour for last plotted level
is visible.

So I used geom_jitter() to get a reasonable looking visualization.

> Cheers
> Petr
>
>

--
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918