How can I write a R-code so I can get these diagrams? (The skewness and Kurtosis for a normal distribution) http://www.google.dk/imgres?um=1&hl=da&biw=1280&bih=605&tbm=isch&tbnid=aWXNm22wHhXWWM:&imgrefurl=http://en.wikipedia.org/wiki/Skewness&docid=klEV7X9U6qwTRM&imgurl=http://upload.wikimedia.org/wikipedia/commons/thumb/b/b3/Skewness_Statistics.svg/446px-Skewness_Statistics.svg.png&w=446&h=159&ei=ItWZT-uJN9DasgbMk5GDAg&zoom=1&iact=hc&vpx=251&vpy=70&dur=1167&hovh=127&hovw=356&tx=199&ty=80&sig=116883908876291019314&page=1&tbnh=60&tbnw=167&start=0&ndsp=19&ved=1t:429,r:1,s:0,i:64 http://www.google.dk/imgres?um=1&hl=da&sa=G&biw=1280&bih=605&tbm=isch&tbnid=SIGOWo7LXGsVeM:&imgrefurl=http://en.wikipedia.org/wiki/Kurtosis&docid=MW7bxO94ThdKxM&imgurl=http://upload.wikimedia.org/wikipedia/commons/thumb/e/e6/Standard_symmetric_pdfs.png/300px-Standard_symmetric_pdfs.png&w=300&h=214&ei=-dSZT8z_KpD6sgbStNCkDQ&zoom=1&iact=hc&vpx=462&vpy=154&dur=4400&hovh=171&hovw=240&tx=151&ty=86&sig=116883908876291019314&page=1&tbnh=113&tbnw=159&start=0&ndsp=18&ved=1t:429,r:2,s:0,i:68 Thank you -- View this message in context: http://r.789695.n4.nabble.com/To-create-skewness-and-kurtosis-in-R-tp4591286p4591286.html Sent from the R help mailing list archive at Nabble.com.
I have tried this but its not the same as in the links. x=seq(-3,3,length.out=100) y=dnorm(x) plot(x,y,type="l") y3=y*2 x3=x+1 plot(range(c(-4,4)),range(c(0,3)),xlab="x",ylab="y",col="white" ) lines(x,y4,type="l") x2=x*0.5 lines(x2,y,type="l") -- View this message in context: http://r.789695.n4.nabble.com/To-create-skewness-and-kurtosis-in-R-tp4591286p4591412.html Sent from the R help mailing list archive at Nabble.com.