Dear List, I am using plot for homework. The x-axis covered from 0 to 80, with 4 intervals. However, the plot only showed 0, 40, 80. 20 and 60 disappeared. Please kindly advise how to show 0, 20, 40, 60, 80 for the axis interval. Thank you. Elaine [[alternative HTML version deleted]]
ONKELINX, Thierry
2010-Sep-20 13:48 UTC
[R] how to show the number of each axis interval (plot)
Have a look at ?axis ------------------------------------------------------------------------ ---- ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek team Biometrie & Kwaliteitszorg Gaverstraat 4 9500 Geraardsbergen Belgium Research Institute for Nature and Forest team Biometrics & Quality Assurance Gaverstraat 4 9500 Geraardsbergen Belgium tel. + 32 54/436 185 Thierry.Onkelinx at inbo.be www.inbo.be To call in the statistician after the experiment is done may be no more than asking him to perform a post-mortem examination: he may be able to say what the experiment died of. ~ Sir Ronald Aylmer Fisher The plural of anecdote is not data. ~ Roger Brinner The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data. ~ John Tukey> -----Oorspronkelijk bericht----- > Van: r-help-bounces at r-project.org > [mailto:r-help-bounces at r-project.org] Namens elaine kuo > Verzonden: maandag 20 september 2010 15:44 > Aan: r-help at r-project.org > Onderwerp: [R] how to show the number of each axis interval (plot) > > Dear List, > > I am using plot for homework. > > The x-axis covered from 0 to 80, with 4 intervals. > However, the plot only showed 0, 40, 80. > 20 and 60 disappeared. > > Please kindly advise how to show 0, 20, 40, 60, 80 for the > axis interval. > > Thank you. > > Elaine > > [[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. >Druk dit bericht a.u.b. niet onnodig af. Please do not print this message unnecessarily. Dit bericht en eventuele bijlagen geven enkel de visie van de schrijver weer en binden het INBO onder geen enkel beding, zolang dit bericht niet bevestigd is door een geldig ondertekend document. The views expressed in this message and any annex are purely those of the writer and may not be regarded as stating an official position of INBO, as long as the message is not confirmed by a duly signed document.
Ivan Calandra
2010-Sep-20 13:48 UTC
[R] how to show the number of each axis interval (plot)
Hi, The list is not made for helping students with their homeworks. I will just tell you this: there are graphic parameters for every single detail on a plot. Take a look at ?par Ivan Le 9/20/2010 15:44, elaine kuo a écrit :> Dear List, > > I am using plot for homework. > > The x-axis covered from 0 to 80, with 4 intervals. > However, the plot only showed 0, 40, 80. > 20 and 60 disappeared. > > Please kindly advise how to show 0, 20, 40, 60, 80 for the axis interval. > > Thank you. > > Elaine > > [[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. >-- Ivan CALANDRA PhD Student University of Hamburg Biozentrum Grindel und Zoologisches Museum Abt. Säugetiere Martin-Luther-King-Platz 3 D-20146 Hamburg, GERMANY +49(0)40 42838 6231 ivan.calandra@uni-hamburg.de ********** http://www.for771.uni-bonn.de http://webapp5.rrz.uni-hamburg.de/mammals/eng/mitarbeiter.php [[alternative HTML version deleted]]
Duncan Murdoch
2010-Sep-20 13:48 UTC
[R] how to show the number of each axis interval (plot)
On 20/09/2010 9:44 AM, elaine kuo wrote:> Dear List, > > I am using plot for homework.You should ask your instructor or teaching assistant for help on homework. Duncan Murdoch> The x-axis covered from 0 to 80, with 4 intervals. > However, the plot only showed 0, 40, 80. > 20 and 60 disappeared. > > Please kindly advise how to show 0, 20, 40, 60, 80 for the axis interval. > > Thank you. > > Elaine > > [[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.
Duncan Murdoch <murdoch.duncan <at> gmail.com> writes:> > On 20/09/2010 9:44 AM, elaine kuo wrote: > > Dear List, > > > > I am using plot for homework. > > You should ask your instructor or teaching assistant for help on homework. > > Duncan Murdoch > > > The x-axis covered from 0 to 80, with 4 intervals. > > However, the plot only showed 0, 40, 80. > > 20 and 60 disappeared. > > > > Please kindly advise how to show 0, 20, 40, 60, 80 for the axis interval.To be fair, there is one surprising wrinkle of the standard R graphics interface. If your plot window is sufficiently compressed that some labels would overlap, those labels sometimes silently disappear. If this is the problem, then manually expanding the size of the plot window should make those labels reappear -- or, in printed graphics, expanding the width and height when you open the graphics device. Alternatively you can change the size of the axis labels. ?axis, ?par ...