Dear Ben,
great, works fine! I guess, the error occurs because data outside the scale
limits "is thrown away" as stated in ?coord_cartesian .
Thanks,
Felix
From: Ben Bolker
mailto:bbolker_at_gmail.com?Subject=Re:%20[R]%20break%20error%20bars%20in%20ggplot2>>
Date: Tue, 15 Nov 2011 13:44:44 +
Fischer, Felix charite.de> writes:
>
> Hello,
>
> i use ggplot to plot some measures including CIs as horizontal
> errorbars. I get an error when the scale
> limits are narrower than the boundaries of the error bar and
> hence the CIs are not plotted.
>
> library(ggplot2)
> df <- data.frame(
Hello,
i use ggplot to plot some measures including CIs as horizontal errorbars. I get
an error when the scale limits are narrower than the boundaries of the error
bar and hence the CIs are not plotted.
library(ggplot2)
df <- data.frame(resp=c(1,2), k=c(1,2), se=c(1,2))
ggplot(df, aes(resp,y=k
3 matches
Mail list logo