[R] Is there a way to convert rgb/hex value to a (nearest) color name?

2009-11-30 Thread Jorgy Porgee
Hi all, I'm trying to convert a series of rgb codes into a color name. What is my easiest option? So far I'm stuck with just converting to hex using rgb() and I know R knows a number of colours() but a mapping of the two has failed me. Any help in this regard will be highly appreciated. Regards,

Re: [R] Is there a way to convert rgb/hex value to a (nearest) color name?

2009-11-30 Thread Jorgy Porgee
Fantastic. Thanks Duncan. Clearly my google key words were the wrong ones, nothing of this sort came up. Hope my title is easier to find somehow.. Regards, George __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] How can I replicate Excel's 'growth trend' series interpolation?

2009-09-16 Thread Jorgy Porgee
Good day all, I'm trying to replicate Excel's growth trend series interpolation, available by highlighting a number of cells and then under Edit--Fill--Series--Type=growth and select 'Trend'. For example, if my starting point is 1.4 and end point is 30 with the sequence length being 11, the

Re: [R] How can I replicate Excel's 'growth trend' series interpolation?

2009-09-16 Thread Jorgy Porgee
Wow :). Thanks a ton. On Wed, Sep 16, 2009 at 2:31 PM, Richard M. Heiberger r...@temple.edu wrote: exp(seq(log(1.4), log(30), length=11))  [1]  1.40  1.902074  2.584203  3.510961  4.770076  6.480741 8.804891 11.962537 16.252591 22.081162 [11] 30.00

[R] Is there a way to round numbers up or down to the nearest natural looking number?

2009-09-16 Thread Jorgy Porgee
Hi all, Given the following series of numbers: t [1] 21.85000 30.90410 43.71000 61.82234 87.43999 123.67296 [7] 174.91997 247.40249 349.91996 494.91815 700.0 What's the simplest way of formatting them into the nearest natural looking (rounded to nearest multiple of 10) numbers? So:

[R] Can someone please explain why the last tick mark on this chart is not showing?

2009-09-16 Thread Jorgy Porgee
Hi all, I'm trying to log chart but with natural looking tick marks. My specifications are very specific -- it must indicate the lowest number's tick as well as the maximum. I've attached sample code and data for a particular case (and there are a few more like this) where the bottom tickmarks

Re: [R] Can someone please explain why the last tick mark on this chart is not showing?

2009-09-16 Thread Jorgy Porgee
, 2009, at 11:13 AM, Jorgy Porgee wrote: Hi all, I'm trying to log chart but with natural looking tick marks. My specifications are very specific -- it must indicate the lowest number's tick as well as the maximum. I've attached sample code and data for a particular  case

[R] How do I ensure that the minimum value is always displayed on a y-axis in a plot?

2009-09-14 Thread Jorgy Porgee
Good day all, I'm trying to plot a figure and ensure that the minimum and maximum values are always displayed. However, the code below does not display the minimum value, no matter what I try. Could someone please help? Thanking you in advance, George. Code below for reproduction (apologies if

[R] Has any one tested R 2.9.2 on Snow Leopard?

2009-08-28 Thread Jorgy Porgee
Hi all, not sure if this is the right place to ask this but R not being such a mainstream app, can't find the answer anywhere. I plan to upgrade to Snow asap and just wondering if anyone else has already and has successfully used R on Mac OSX 10.6. If so, what version? and is it running in 64 bit

[R] How do I plot: regression line, regression line + s.d, regression line - s.d on the same chart?

2009-08-11 Thread Jorgy Porgee
Hello all, I've got a scatter plot, for which I create a regression line using: reg- lm(yvars~xvars) and can plot the regression through the scatter just fine. I'd like to add two additional lines on the scatter plot: one being regressionline+standard deviation, the other being

Re: [R] How do I plot a line followed by two forecast points?

2009-08-09 Thread Jorgy Porgee
US Fish Wildlife Service California, USA --- On Fri, 8/7/09, Clint Bowman cl...@ecy.wa.gov wrote: From: Clint Bowman cl...@ecy.wa.gov Subject: Re: [R] How do I plot a line followed by two forecast points? To: Jorgy Porgee jorgy.por...@gmail.com Cc: Jean V Adams jvad...@usgs.gov, r-help@r

[R] How do I plot a line followed by two forecast points?

2009-08-07 Thread Jorgy Porgee
Good day all, I'm trying to plot a continuous line plot, which is followed by two forecast points eg. one forecast point is 12 months out, and another 24 months out from the last date of the line plot. In my attempts so far, the second plot (the forecast points) is scaled against a new axis

Re: [R] How do I plot a line followed by two forecast points?

2009-08-07 Thread Jorgy Porgee
, col=red) points(fcastDate2, fcast2, col=blue) Jean - From: Jorgy Porgee jorgy.porgee at gmail.com Subject: How do I plot a line followed by two forecast points? Newsgroups: gmane.comp.lang.r.general Date: 2009-08-07 15:17:52 GMT (2 hours and 55 minutes ago) Good day all, I'm