[R] SOLVED plotting multiple CIs
Ista Zahn
istazahn at gmail.com
Fri Apr 30 18:52:43 CEST 2010
Glad you got it working!
By "true value" do you mean the means? If so:
library(ggplot2)
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") + geom_point(stat="summary", fun.y = "mean")
Best,
Ista
On Fri, Apr 30, 2010 at 12:33 PM, Giovanni Azua <bravegag at gmail.com> wrote:
> Hello,
>
> After installing gfortran from http://r.research.att.com/gfortran-4.2.3.dmg it finally works! see below.
>
> Thank you all.
>
> @Ista Zahn: Looks fantastic! :) thank you so much! ... is there a way to have a small circle on the true value?
>
> Best regards,
> Giovanni
>
>> install.packages("Hmisc", dependencies=TRUE, type ="source")
> trying URL 'http://cran.ch.r-project.org/src/contrib/Hmisc_3.7-0.tar.gz'
> Content type 'application/x-gzip' length 563054 bytes (549 Kb)
> opened URL
> ==================================================
> downloaded 549 Kb
>
> * installing *source* package ‘Hmisc’ ...
> ** libs
> ** arch - i386
> gcc -arch i386 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/i386 -I/usr/local/include -fPIC -g -O2 -c Hmisc.c -o Hmisc.o
> gfortran -arch i386 -fPIC -g -O2 -c cidxcn.f -o cidxcn.o
> gfortran -arch i386 -fPIC -g -O2 -c cidxcp.f -o cidxcp.o
> gfortran -arch i386 -fPIC -g -O2 -c hoeffd.f -o hoeffd.o
> gfortran -arch i386 -fPIC -g -O2 -c jacklins.f -o jacklins.o
> gfortran -arch i386 -fPIC -g -O2 -c largrec.f -o largrec.o
> gcc -arch i386 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/i386 -I/usr/local/include -fPIC -g -O2 -c mChoice.c -o mChoice.o
> gcc -arch i386 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/i386 -I/usr/local/include -fPIC -g -O2 -c nstr.c -o nstr.o
> gcc -arch i386 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/i386 -I/usr/local/include -fPIC -g -O2 -c ranksort.c -o ranksort.o
> gfortran -arch i386 -fPIC -g -O2 -c rcorr.f -o rcorr.o
> gcc -arch i386 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/i386 -I/usr/local/include -fPIC -g -O2 -c string_box.c -o string_box.o
> gfortran -arch i386 -fPIC -g -O2 -c wclosest.f -o wclosest.o
> gcc -arch i386 -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -o Hmisc.so Hmisc.o cidxcn.o cidxcp.o hoeffd.o jacklins.o largrec.o mChoice.o nstr.o ranksort.o rcorr.o string_box.o wclosest.o -lgfortran -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
> installing to /Library/Frameworks/R.framework/Versions/2.11/Resources/library/Hmisc/libs/i386
> ** arch - x86_64
> gcc -arch x86_64 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/usr/local/include -fPIC -g -O2 -c Hmisc.c -o Hmisc.o
> gfortran -arch x86_64 -fPIC -g -O2 -c cidxcn.f -o cidxcn.o
> gfortran -arch x86_64 -fPIC -g -O2 -c cidxcp.f -o cidxcp.o
> gfortran -arch x86_64 -fPIC -g -O2 -c hoeffd.f -o hoeffd.o
> gfortran -arch x86_64 -fPIC -g -O2 -c jacklins.f -o jacklins.o
> gfortran -arch x86_64 -fPIC -g -O2 -c largrec.f -o largrec.o
> gcc -arch x86_64 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/usr/local/include -fPIC -g -O2 -c mChoice.c -o mChoice.o
> gcc -arch x86_64 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/usr/local/include -fPIC -g -O2 -c nstr.c -o nstr.o
> gcc -arch x86_64 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/usr/local/include -fPIC -g -O2 -c ranksort.c -o ranksort.o
> gfortran -arch x86_64 -fPIC -g -O2 -c rcorr.f -o rcorr.o
> gcc -arch x86_64 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/usr/local/include -fPIC -g -O2 -c string_box.c -o string_box.o
> gfortran -arch x86_64 -fPIC -g -O2 -c wclosest.f -o wclosest.o
> gcc -arch x86_64 -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -o Hmisc.so Hmisc.o cidxcn.o cidxcp.o hoeffd.o jacklins.o largrec.o mChoice.o nstr.o ranksort.o rcorr.o string_box.o wclosest.o -lgfortran -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
> installing to /Library/Frameworks/R.framework/Versions/2.11/Resources/library/Hmisc/libs/x86_64
> ** R
> ** inst
> ** preparing package for lazy loading
> Loading required package: splines
> ** help
> *** installing help indices
> ** building package indices ...
> ** testing if installed package can be loaded
>
> * DONE (Hmisc)
>
> The downloaded packages are in
> ‘/private/var/folders/5m/5mC0wYCSGMK8NbPZYhBEZE+++TI/-Tmp-/Rtmpz0R5nY/downloaded_packages’
> Updating HTML index of packages in '.Library'
>>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology
http://yourpsyche.org
More information about the R-help
mailing list