Hi: On Tue, Apr 13, 2010 at 9:45 PM, bbslover <dlu...@yeah.net> wrote:
> > I want to get the plot like this, > > http://n4.nabble.com/file/n1839303/%25E9%25A2%2591%25E7%258E%2587%25E5%2588%2586%25E5%25B8%2583%25E5%259B%25BE%25E6%25A0%2587%25E5%2587%2586.jpg > %E9%A2%91%E7%8E%87%E5%88%86%E5%B8%83%E5%9B%BE%E6%A0%87%E5%87%86.jpg > This plot requires that you create a factor whose levels are ordered as c(rep(0, 5, by = 0.1), 'More') and use barplot() to do the graph. To get the center line, use vline(). To specify the position and angle of the labels, consult ?axis, and make sure you use xaxt = 'n' to suppress the x-axis in the original plot. That's sufficient to get the gist of what you need to generate the plot above. The plot below was clearly produced with hist(), treating the x variable as numeric. Don't forget to consult the space = and beside = arguments of barplot(); it wouldn't hurt to run the examples, either... HTH, Dennis > > not this, http://n4.nabble.com/file/n1839303/R.jpg R.jpg > > and the data here, thank you! http://n4.nabble.com/file/n1839303/y1.txt > y1.txt > > can R deal with this problem? how can I do? > -- > View this message in context: > http://n4.nabble.com/how-can-I-plot-the-histogram-like-this-using-R-tp1839303p1839303.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. > [[alternative HTML version deleted]] ______________________________________________ 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.