[R] plotting multiple CIs

Giovanni Azua bravegag at gmail.com
Fri Apr 30 17:09:24 CEST 2010


Hello Zahn,

On Apr 30, 2010, at 4:35 PM, Ista Zahn wrote:
> Hi Giovanni,
> I think the ggplot2 package might help you out here. Do you want
> something like this?

Thank you for your suggestion however I could not give it a try since landed in the same  issue being reported about the Hmisc package:

> install.packages("Hmisc", dependencies=TRUE)
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
  package ‘Hmisc’ is not available
> library(ggplot2)
> library(Hmisc)
Error in library(Hmisc) : there is no package called 'Hmisc'
> 
> data(mtcars)
> 
> p <- ggplot(mtcars, aes(x=cyl, y=mpg))
> 
> p + stat_summary(fun.data = "mean_cl_boot", colour = "red", geom =
+ "errorbar") +  stat_summary(fun.data = "mean_cl_normal", colour =
+ "blue", geom = "errorbar")
Error: Hmisc package required for this functionality.  Please install and try again.
>

I am running Mac OS X Snow Leopard latest version and also have the latest R UI for Mac.

How can Hmisc be installed manually?

Best regards,
Giovanni  


More information about the R-help mailing list