spidermonkeydp
2009-Oct-13 10:06 UTC
[R] Adding additional X-axis data to charts, e.g. N values
Hello All, Does anyone know if it is possible to add an additional X-axis data to a chart? For example, if I have plotted a bar chart of mean height on the Y-axis and have male and female on the X-axis. I want to add automatically the number of samples (N) for males and number of samples for females under their respective labels on the X-axis. I could do this manually using Power Point or equivalent software, but was wondering if there were any way of doing this automatically. I have tried in SPSS, Sigma-plot, Excel and cannot see a way of doing this. Can R provide me with this function? Thank you for any advice, even if you know of another package that may be capable of this. Best, D. -- View this message in context: http://www.nabble.com/Adding-additional-X-axis-data-to-charts%2C-e.g.-N-values-tp25870161p25870161.html Sent from the R help mailing list archive at Nabble.com.
John Kane
2009-Oct-13 12:22 UTC
[R] Adding additional X-axis data to charts, e.g. N values
?mtext should help. --- On Tue, 10/13/09, spidermonkeydp <gbaboons at gmail.com> wrote:> From: spidermonkeydp <gbaboons at gmail.com> > Subject: [R] Adding additional X-axis data to charts, e.g. N values > To: r-help at r-project.org > Received: Tuesday, October 13, 2009, 6:06 AM > > Hello All, > > Does anyone know if it is possible to add an additional > X-axis data to a > chart? > > For example, if I have plotted a bar chart of mean height > on the Y-axis and > have male and female on the X-axis. I want to add > automatically the number > of samples (N) for males and number of samples for females > under their > respective labels on the X-axis. I could do this manually > using Power Point > or equivalent software, but was wondering if there were any > way of doing > this automatically. > > I have tried in SPSS, Sigma-plot, Excel and cannot see a > way of doing this. > Can R provide me with this function? > > Thank you for any advice, even if you know of another > package that may be > capable of this. > > Best, > > D. > -- > View this message in context: http://www.nabble.com/Adding-additional-X-axis-data-to-charts%2C-e.g.-N-values-tp25870161p25870161.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. >__________________________________________________________________ [[elided Yahoo spam]]