search for: shadedarea

Displaying 3 results from an estimated 3 matches for "shadedarea".

2009 Jun 03
1
Would like to add this to example for plotmath. Can you help?
...,2)), pos=1) ### Take sequence parallel to values of myx inside critical region specialY <- myDensity[myx < criticalValue] # Polygon makes a nice shaded illustration polygon(c(specialX[1], specialX, specialX[length(specialX )]), c(0, specialY, 0), density=c(-110),col="lightgray" ) shadedArea <- round(pnorm(mu - 1.96 * sigma, mean=mu, sd=sigma),4) ### I want to insert annotation about area on left side. al1 <- bquote(Prob(x <= .(round(criticalValue,2)))) al2 <- bquote(phantom(0) == F( .(round(criticalValue,2)) )) al3 <- bquote(phantom(0) == .(round(shadedArea,3))) ###...
2010 Mar 09
3
Shade area under curve
I want to shade the area under the curve of the standard normal density. Specifically color to the left of -2 and on. How might i go about doing this? Thanks -- View this message in context: http://n4.nabble.com/Shade-area-under-curve-tp1586439p1586439.html Sent from the R help mailing list archive at Nabble.com.
2008 Dec 31
3
Plotmath with values?
I hope to use the plotmath facility to print titles that mix math and values of R variables. The help for "plotmath" has an example, which after repeated reading, I find baffling. Likewise, I have read the help file for "substitute" (wqhich seems to be needed) without ever understanding what it does, other than being used in some magic incantations. I would like to do