Hi: It seems to me that num1 is a nested factor within ESHKOL_tert. With that in mind, I redefined the two terms to be factors and redid Josh's plot as follows:
dat3 <- dat2 dat3 <- transform(dat3, num1 = factor(num1), ESHKOL_tert = factor(ESHKOL_tert)) ggplot(data = dat3, aes(x = value, y = num1)) + geom_point() + facet_grid(ESHKOL_tert ~ ., scales = "free") This yields a different appearance, showing that most of the num1 levels are in ESHKOL_tert 2, but the concept is the same. I like how ggplot2 'knows' about the nesting relationship. To see this, go into the original data frame dat and type with(dat, table(num1, ESHKOL_tert)) If you find that the values on the y-axis overlap each other, add (+) the following line to your ggplot() code: opts(axis.text.y = theme_text(size = 7)) If it's too large, lower the number, and vice versa. HTH, Dennis On Sun, Sep 19, 2010 at 2:21 PM, avsha38 <avsha...@post.tau.ac.il> wrote: > > Hi Josh > > Wow, I greatly appreciate you taking the time to help out. It works > excellent!!! > I am just a beginner with R; thanks a lot for your books recommendation, I > will be using them. > > If I may ask you, I have about 300 records in the full file and once I ran > the code with the full file, > The values on the Y axis are not showing properly, as they overlap each > other. > Do you have any suggestion for solving that? > > Thanks again, > Avi > > -- > View this message in context: > http://r.789695.n4.nabble.com/Create-Dot-Chart-tp2545921p2546250.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.