Integration of R into wikis - Graphics

From SlideWiki

Jump to: navigation, search
|< <<  >> >| 
Integration of R into wikis: About - ZWiki - MediaWiki - Outlook
StatWiki - Raw Output - HTML - Graphics - Interaction - Further plugins


<R output="display" iframe="width:400px;height:400px">
pdf(rpdf, width=5, height=5)
n    <- 10
prob <- 0.2
x <- seq(0, n, 1)
p <- dbinom(x, n, prob)
param <- list(n, prob)
main <- c("Binomialverteilung - Wahrscheinlichkeitsfunktion", paste (c("Stichprobenumfang n", "Wahrscheinlichkeit p"), param, sep="="))
plot(x,p, type="h", main=main)
</R>

Personal tools