akki
2007-Oct-08 21:37 UTC
[R] How put description under the graph (using different lines)
Hello, I need to use barplot' graphs, but under the graph I need to put different things. The structure of this graph must be: MY GRAPH ------------------------------------------------------ description 1 ----------------------- ------------------------- description2 description3 where: -description 1, description 2 and description 3 are the variables' names that I must to change on my different barplot. -MY GRAPH belongs barplot's graph. The 3 lines (it is paited on sctructure of the graph) must to be painted on my graph. I think it is possible but I don't achieve to do it. Can anybody help me, please? Thanks. [[alternative HTML version deleted]]
Greg Snow
2007-Oct-08 22:06 UTC
[R] How put description under the graph (using different lines)
If your descriptions are just 1 line each then you can give yourself extra room at the bottom with par(mar=c(... Then use the mtext function to add the descriptions. If the descriptions are more detailed then you can try something like:> library(gplots) > layout( rbind( 1,2,c(3,4) ) ) > barplot(1:10) > textplot('this is the first description', cex=1) > textplot('this is the second',cex=1) > textplot('and the third',cex=1)But play with the 'heights' argument to layout to get the heights how you want them to be. Hope this helps, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at intermountainmail.org (801) 408-8111> -----Original Message----- > From: r-help-bounces at r-project.org > [mailto:r-help-bounces at r-project.org] On Behalf Of akki > Sent: Monday, October 08, 2007 3:37 PM > To: r-help > Subject: [R] How put description under the graph (using > different lines) > > Hello, > I need to use barplot' graphs, but under the graph I need to > put different things. The structure of this graph must be: > > MY GRAPH > ------------------------------------------------------ > description 1 > ----------------------- ------------------------- > description2 description3 > > > where: > -description 1, description 2 and description 3 are the > variables' names that I must to change on my different barplot. > -MY GRAPH belongs barplot's graph. > The 3 lines (it is paited on sctructure of the graph) must to > be painted on my graph. > > I think it is possible but I don't achieve to do it. Can > anybody help me, please? > > Thanks. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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. >