unl-neuropsych
2009-Nov-06 03:42 UTC
[R] Adjusting Yaxis (ylim) limits on a plotMeans(DV, IV1, IV2, error.bars="se")
Hello everyone, I have tried to look for this everywhere and so far have no luck. I have a plotMeans(DV, IV1, IV2, error.bars="se") graph that plots my data (DV-continuous, IVs are factors, IV1 - two levels, IV2-four levels). I am trying to increase a scale of my y-axis (to be consistent with my other graphs), but unfortunately nothing works with "plotMeans" function, which is the only one I see so fat to plot what I need. Could anyone provide any suggestions or advice? Thank you. Sergey (UNL, Behavioral Psychopharmacology Lab) -- View this message in context: http://old.nabble.com/Adjusting-Yaxis-%28ylim%29-limits-on-a-plotMeans%28DV%2C-IV1%2C-IV2%2C-error.bars%3D%22se%22%29-tp26226434p26226434.html Sent from the R help mailing list archive at Nabble.com.
Sergios (Sergey) Charntikov
2009-Nov-06 03:51 UTC
[R] Adjusting Yaxis (ylim) limits on a plotMeans(DV, IV1, IV2, error.bars="se")
Hello everyone, I have tried to look for this everywhere and so far have no luck. I have a plotMeans(DV, IV1, IV2, error.bars="se") graph that plots my data (DV-continuous, IVs are factors, IV1 - two levels, IV2-four levels). I am trying to increase a scale of my y-axis (to be consistent with my other graphs), but unfortunately nothing works with "plotMeans" function, which is the only one I see so fat to plot what I need. Could anyone provide any suggestions or advice? Thank you. Sergey (UNL, Behavioral Psychopharmacology Lab) [[alternative HTML version deleted]]
Steven McKinney
2009-Nov-06 05:27 UTC
[R] Adjusting Yaxis (ylim) limits on a plotMeans(DV, IV1, IV2, error.bars="se")
Hi Sergey I've attached a script with a ylim argument added to plotMeans. If you are using Rcmdr, you can load this script via the Rcmdr File menu item File Open Script File so save this plotMeans.R script somewhere, and load it and run it in Rcmdr, then do your plot command plotMeans(DV, IV1, IV2, error.bars="se", ylim = c(27, 99)) or whatever your desired ylim values are. HTH Steven McKinney, Ph.D. Statistician Molecular Oncology and Breast Cancer Program British Columbia Cancer Research Centre email: smckinney +at+ bccrc +dot+ ca tel: 604-675-8000 x7561 BCCRC Molecular Oncology 675 West 10th Ave, Floor 4 Vancouver B.C. V5Z 1L3 Canada ________________________________________ From: r-help-bounces at r-project.org [r-help-bounces at r-project.org] On Behalf Of Sergios (Sergey) Charntikov [sergioschr at gmail.com] Sent: November 5, 2009 7:51 PM To: r-help at r-project.org Subject: [R] Adjusting Yaxis (ylim) limits on a plotMeans(DV, IV1, IV2, error.bars="se") Hello everyone, I have tried to look for this everywhere and so far have no luck. I have a plotMeans(DV, IV1, IV2, error.bars="se") graph that plots my data (DV-continuous, IVs are factors, IV1 - two levels, IV2-four levels). I am trying to increase a scale of my y-axis (to be consistent with my other graphs), but unfortunately nothing works with "plotMeans" function, which is the only one I see so fat to plot what I need. Could anyone provide any suggestions or advice? Thank you. Sergey (UNL, Behavioral Psychopharmacology Lab) [[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. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: plotMeans.R URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20091105/473eadc1/attachment-0002.pl>