On Fri, Apr 16, 2010 at 10:13 AM, bbslover <dlu...@yeah.net> wrote: > > Thanks for your reply, I just want to get the figure like y1.jpg using the > data from y1.txt. > Through the figure I want to obtain the split point like y1.jpg, and > consider 2.5 as the plit point. This figure is drawn by other people, I > just want to draw it using R, but I can not, so I hope, friends can help me. > > Best wishes! > kevin http://n4.nabble.com/file/n1965378/y1.jpg > http://n4.nabble.com/file/n1965378/y1.txt y1.txt > -- > View this message in context: > http://n4.nabble.com/how-can-I-plot-the-histogram-like-this-using-R-tp1839303p1965378.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@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. >
Hi, Does this do what you want? temp<-read.table(url("http://n4.nabble.com/file/n1965378/y1.txt")) hist(temp$V1,breaks=seq(0,5.1,by=0.1)) abline(v=2.5,lty=2,lwd=2,col="red") Regards, Gustaf -- Gustaf Rydevik, M.Sci. tel: +46(0)703 051 451 address:Essingetorget 40,112 66 Stockholm, SE skype:gustaf_rydevik ______________________________________________ R-help@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.