I am plotting a function. Does anyone know how I can plot the graph with the ticks in a numerical vector v I would provide to the plotting function? -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> -----Original Message----- > From: owner-r-help at stat.math.ethz.ch[mailto:owner-r-help at stat.math.ethz.ch] On> Behalf Of Francisco J Molina > Sent: Friday, July 12, 2002 8:16 PM > To: r-help > Subject: [R] plotting > > I am plotting a function. > > Does anyone know how I can plot the graph with the ticks in anumerical> vector v I would provide to the plotting function?If I understand your question correctly, you would use the axis() function. See ?axis. If you are using plot() to generate the graphic, you would specify "axes = FALSE" as an argument to plot(), which would tell the function to not generate axis lines, tick marks and axis labels at the tick marks. This would then allow you to define your own using axis(). For an additional set of arguments to plot() see ?plot.default. Hope that helps. Marc -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
If v _ c( 0, 10, 13, 179) Try mtext( | , side=1, at=v , line= -0.5, cex=0.5 ) if you want tick marks on the x-axis the line argument usually means how far away from the axis you want the marks. negative means inwards, you may have to experiment a bit to get it on the axis as you wish. cex=0.5 just controls the font size. There are tick mark options, together with grid options but I find mtext quick and easy. Perhaps some members know a more efficient way. ----- Original Message ----- From: "Francisco J Molina" <FJMolina at lbl.gov> To: "r-help" <r-help at stat.math.ethz.ch> Sent: Saturday, July 13, 2002 2:15 AM Subject: [R] plotting> I am plotting a function. > > Does anyone know how I can plot the graph with the ticks in a numerical > vector v I would provide to the plotting function? > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-> r-help mailing list -- Readhttp://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html> Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch >_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. _._>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._