[R] Fwd: Re: scatter plot coloring problem

Micha Silver t@vib@r @ending from gm@il@com
Sat Jul 21 12:36:15 CEST 2018


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



More information about the R-help mailing list