[R] plot-function: How to change the font of the titles
Hello! I want to create a plot with x- and y-labels writen in times or arial. How can I change the font? Thank you very much. Best regards Claudia __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] plot-function: How to change the font of the titles
Hello! I want to create a plot with x- and y-labels writen in times or arial. How can I change the font? Thank you very much. Best regards Claudia __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] plot-function: How to change the font of the titles
On Wed, 1 Feb 2006 [EMAIL PROTECTED] wrote: Hello! I want to create a plot with x- and y-labels writen in times or arial. How can I change the font? Well, is it `titles' (subject) or `x- and y-labels', and if the latter do you mean 'labels' (as in axis) or 'xlab' (as in title)? Do you want some or all of the annotation in Times or Arial, or some in each. (On devices which support Arial it is the default.) And on which device and which version of R? If this is on Windows, see the rw-FAQ and the help on Rdevga, and choose an appropriate value of the graphics par 'font' (normally 1 for Arial and 6 for Times). Otherwise, consider par(family). [And please do read the posting guide and not send posts twice or more.] -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] plot-function: How to change the font of the titles
Hi Almost all graphic manipulation is done by par() setting. Sometimes you can issue a par argument directly in plot() command so for Windows plot(, font.lab = integer.number.to specify.predefined.font) however I believe that font issue is device and OS specific and you shall read (and try) ?par ?plot ?text ?axis see also Rdevga file for predefined fonts HTH Petr On 1 Feb 2006 at 11:28, [EMAIL PROTECTED] wrote: Date sent: Wed, 1 Feb 2006 11:28:05 +0100 From: [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Subject:[R] plot-function: How to change the font of the titles Hello! I want to create a plot with x- and y-labels writen in times or arial. How can I change the font? Thank you very much. Best regards Claudia __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Petr Pikal [EMAIL PROTECTED] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] plot function
Cuichang Zhao wrote: Hello, how can use change the plot function to change the range of axises. I want my graph from a certain range [a, b], instead of from the min to max of of datas? if i want draw a line instead of dots, should i use both plot and lines function. for example: plot(x, y); lines(x, y); things seem not working if i only use lines(x, y). Thank you so much. Cuichang Zhao Jan 25, 2005 - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html the first see also entry in the help text for plot is plot.default. well, do that: try ?plot.default. time estimate for finding it yourself: one minute. you really should think about using the online help. if everybody would use your approach, the list would probably get a thousand 'hits' per hour of the quality: is there a way to speed up matrix addition? the for loops run too slow. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] plot function
Try this, plot(x,y,xlim=c(a,b),ylim=c(c,d)) lines(z,q) will only add lines onto an existing plot, not create a new plot! Have a look at: http://cran.r-project.org/doc/manuals/R-intro.html#Graphics Cheers, Henrik Cuichang Zhao wrote: Hello, how can use change the plot function to change the range of axises. I want my graph from a certain range [a, b], instead of from the min to max of of datas? if i want draw a line instead of dots, should i use both plot and lines function. for example: plot(x, y); lines(x, y); things seem not working if i only use lines(x, y). Thank you so much. Cuichang Zhao Jan 25, 2005 - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- - Henrik Andersson Netherlands Institute of Ecology - Centre for Estuarine and Marine Ecology P.O. Box 140 4400 AC Yerseke Phone: +31 113 577473 [EMAIL PROTECTED] http://www.nioo.knaw.nl/ppages/handersson __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] plot function
Hi first of all do ?plot ?lines and read the help page (especially about parameters xlim and ylim) and/or try to use examples provided. plot(1:100, rnorm(100), xlim=c(1,50), type=l) Cheers Petr On 25 Jan 2005 at 21:34, Cuichang Zhao wrote: Hello, how can use change the plot function to change the range of axises. I want my graph from a certain range [a, b], instead of from the min to max of of datas? if i want draw a line instead of dots, should i use both plot and lines function. for example: plot(x, y); lines(x, y); things seem not working if i only use lines(x, y). Thank you so much. Cuichang Zhao Jan 25, 2005 - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Petr Pikal [EMAIL PROTECTED] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] plot function
Hello, how can use change the plot function to change the range of axises. I want my graph from a certain range [a, b], instead of from the min to max of of datas? if i want draw a line instead of dots, should i use both plot and lines function. for example: plot(x, y); lines(x, y); things seem not working if i only use lines(x, y). Thank you so much. Cuichang Zhao Jan 25, 2005 - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html