Deepayan Sarkar | 1 Jan 01:20 2009
Picon

Re: Lattice trellis.focus() with pdf

On Wed, Dec 31, 2008 at 3:41 PM, Chris Poliquin <poliquin <at> sas.upenn.edu> wrote:
> Hi,
>
> I have a the code for a plot that works perfectly running in R and printing
> to a Quartz object but which doesn't work when I make the trellis device a
> pdf.
>
> The code is as follows:
> ----
>
> trellis.device(device="pdf", new=TRUE)
> trellis.par.set(my.theme())
> dotplot(Y ~ X | C, groups=G, data=D, layout=c(2,1), ... )
>
> trellis.focus("panel", 1, 1)
> for (y in 1:5) {
>        panel.segments(...)
> }
> trellis.unfocus()
>
> trellis.focus("panel", 2, 1)
> for (y in 6:10) {
>        panel.segments(...)
> }
> trellis.unfocus()
>
> dev.off()
>
> ----
>
(Continue reading)

Barry Rowlingson | 1 Jan 03:55 2009
Picon

Re: Suggestions for inputting a date via a dialog box?

2008/12/31 Tubin <sredmonson <at> yahoo.com>:
>
> Hm.  This looks like a fantastic package in general... but for this
> particular project I would rather not have to redo the entire program to run
> in Rpad.  And it is not immediately evident that I could use Rpad just for
> the function of getting values for a couple of date variables...  Or have I
> misunderstood?

 If this is for running on a Unix-based system you could install
xdialog and use the calendar box widget:

http://xdialog.free.fr/

 but there is no windows version as far as I can see.

 You might be able to use Perl/Tk and Tk-DateEntry on Windows:

http://search.cpan.org/~srezic/Tk-DateEntry-1.38/DateEntry.pm

 but that would require Perl, Perl/Tk, and a way of calling that from
R (probably using system()).

 You could build something simpler in pure R using library(tcltk) -
the easiest thing to do would probably be three drop-down widgets for
day, month, year. Building a full calendar widget might be tricky...

Barry

______________________________________________
R-help <at> r-project.org mailing list
(Continue reading)

Carlos J. Gil Bellosta | 1 Jan 07:55 2009

Re: Package installation

Why don't you post your message in the Bioconductor list? People there
will be able to help you better.

Best regards,

Carlos J. Gil Bellosta
http://www.datanalytics.com

On Wed, 2008-12-31 at 08:00 -0500, jianying_li <at> med.unc.edu wrote:
> Dear all,
> 
> I tried to install bioconductor package using biocLite(). I got warning that c:/program
file/R../library is not writable. In any rate, after the downloading/installing, I looked for packages
like "affy" "gcrma" etc. but I did not seem them in the "library" folder. However, when I try to load the
library, it worked.
> 
> Does anybody have any experience? Where are those packages installed?
> 
> P.S. I am using window vista
> 
> Thanks.
> 
> Jianying
> 
> ----- Original Message -----
> From: "Carlos J. Gil Bellosta" <cgb <at> datanalytics.com>
> Date: Wednesday, December 31, 2008 6:30 am
> Subject: Re: [R] Paste in a FOR loop
> To: Michael Pearmain <mpearmain <at> google.com>
> Cc: r-help <at> r-project.org
(Continue reading)

RON70 | 1 Jan 08:06 2009
Picon

Re: Downloading data from Economagic


Thanks Gabor for your reply. However it seems that data is not downloaded
properly. Please take a look on downloaded data :

> tail(dat2, 20)
GMT
           libor/day-ussnon
2008-11-25          0.93125
2008-11-26          0.98750
2008-11-28               NA
2008-12-01          1.08750
2008-12-02               NA
2008-12-03          0.88125
2008-12-04          0.51875
2008-12-05               NA
2008-12-08          0.18625
2008-12-09               NA
2008-12-10               NA
2008-12-11               NA
2008-12-12          0.11875
2008-12-15          0.11938
2008-12-16               NA
2008-12-17          0.13250
2008-12-18               NA
2008-12-19          0.11000
2008-12-22               NA
2008-12-23          0.11750

Data for 2008-12-22 is given as NA, whereas in the website it is 0·11375.
Does anyone have a better idea on how to download data from Economagic more
(Continue reading)

Prof Brian Ripley | 1 Jan 10:17 2009
Picon
Picon

Re: sdate<-as.POSIXct(strptime(date,format="%m/%d/%Y %H:%M"))

Please do read the posting guide and supply the information asked for.
There is nothing here I can reproduce:

Sys.setenv(TZ="EST5EDT")
date <- c("11/19/2006 00:00", "11/19/2006 00:10")
as.POSIXct(strptime(date,format="%m/%d/%Y %H:%M"))

gives

[1] "2006-11-19 00:00:00 EST" "2006-11-19 00:10:00 EST"

on both Mac OS X and Linux.

So what does sessionInfo() give on your system, and what timezone are you 
using?

On Wed, 31 Dec 2008, Graves, Gregory wrote:

> Newbie here~
>
> I've spent a ton of time on this, but have to admit I am stuck.  I've tried various combinations of strptime
and the package CHRON, but still can't get there.
>
> My simple task is that I want to plot salinity (S1 or S2) on y-axis and time on x-axis, but I want to use a
lay-understandable representation of time (not Julian).  If I use the following command, I can make a plot
using "plot(S1~sdate)", where:
>
> sdate<-as.POSIXct(strptime(date,format="%m/%d/%Y %H:%M"))
>
> ... however, every 00:00 time winds up being an NA.  Here is an excerpt of the input data (this is a HUGE file):
(Continue reading)

Patrick Connolly | 1 Jan 10:47 2009
Picon

Re: Is there some way to append to a pdf after its device has been closed?

On Tue, 30-Dec-2008 at 11:21AM -0500, Alex Pine wrote:

|> Patrick,
|> 
|> The reason I'm having a problem is because R only allows a maximum of 64
|> devices to be open at one time. If it allowed more than that, I wouldn't
|> have a problem. One way to get around that problem would be if I could close
|> a device and then append to it later, but there doesn't seem to be a way to
|> do that. My code works something like the following:
|> 
|> iters <- 1:100
|> obj.list <- ( long list of complex objects, of which there are > 64 )
|> device.list <- (holds a reference to all postscript devices, one for each
|> object in obj.list)
|> 
|> for ( i in iters ) {
|>    for( j in length(obj.list) ) {
|>       dev.set( device.list( j ) )
|>       # do plotting and other stuff for this list member to the j-th file,
|> appending to what has
|>       # been plotted before now
|>    }
|> }
|> # close all devices

You haven't explained why you need all the devices.  What's wrong with
something very simple like this:

postscript(file = "GreatBigFile.ps")

(Continue reading)

Carlos J. Gil Bellosta | 1 Jan 13:27 2009

Re: How do I plot multiple XY plots on the same graph

Hello,

You can use plot for the first plot and points for the subsequent ones.

Points will add new points to the existing plot reusing the axes,
labels, etc.

Best regards,

Carlos J. Gil Bellosta
http://www.datanalytics.com

On Wed, 2008-12-31 at 15:36 -0800, George Chen wrote:
> Hello,
> I have multiple data sets I would like to plot on the same XY scatterplot.
> The data sets have in common the same Y values.
> Could somebody tell me how to do this?
> I tried par(T=new)   (I think this was it) but it literally overlays plots on each other.
> 
> Thanks in advance.
> 
> George
> 
> ______________________________________________
> 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.

______________________________________________
(Continue reading)

Gabor Grothendieck | 1 Jan 13:29 2009
Picon

Re: sdate<-as.POSIXct(strptime(date,format="%m/%d/%Y %H:%M"))

See last line of every message to r-help or read R News 4/1 which gives
info on this.

On Wed, Dec 31, 2008 at 2:20 PM, Graves, Gregory <ggraves <at> sfwmd.gov> wrote:
> Newbie here~
>
> I've spent a ton of time on this, but have to admit I am stuck.  I've tried various combinations of strptime
and the package CHRON, but still can't get there.
>
> My simple task is that I want to plot salinity (S1 or S2) on y-axis and time on x-axis, but I want to use a
lay-understandable representation of time (not Julian).  If I use the following command, I can make a plot
using "plot(S1~sdate)", where:
>
> sdate<-as.POSIXct(strptime(date,format="%m/%d/%Y %H:%M"))
>
> ... however, every 00:00 time winds up being an NA.  Here is an excerpt of the input data (this is a HUGE file):
>
> index                        Date       Julian         S1      S2
> 24985       11/19/2006 00:00 39040.01 20.40 22.11  (this line winds up being an NA)
> 24986       11/19/2006 01:00 39040.05 20.42 22.22
> 24987       11/19/2006 02:00 39040.09 20.60 22.29
> 24988       11/19/2006 03:00 39040.14 20.62 22.21
> 24989       11/19/2006 04:00 39040.18 20.75 22.39
>
> ... an excerpt of the variable "sdate" winds up looking like this:
>
> [35017] NA                        "2007-09-08 01:00:00 EDT"
> [35019] "2007-09-08 01:00:00 EDT" "2007-09-08 10:00:00 EDT"
> [35021] "2007-09-08 10:00:00 EDT" "2007-09-08 11:00:00 EDT"
> [35023] "2007-09-08 11:00:00 EDT" "2007-09-08 12:00:00 EDT"
(Continue reading)

Gabor Grothendieck | 1 Jan 14:00 2009
Picon

Re: Downloading data from Economagic

I was only addressing the part about converting it to a zoo object.

Contact the fImport maintainer directly to sort out problems with that package.

On Thu, Jan 1, 2009 at 2:06 AM, RON70 <ron_michael70 <at> yahoo.com> wrote:
>
> Thanks Gabor for your reply. However it seems that data is not downloaded
> properly. Please take a look on downloaded data :
>
>> tail(dat2, 20)
> GMT
>           libor/day-ussnon
> 2008-11-25          0.93125
> 2008-11-26          0.98750
> 2008-11-28               NA
> 2008-12-01          1.08750
> 2008-12-02               NA
> 2008-12-03          0.88125
> 2008-12-04          0.51875
> 2008-12-05               NA
> 2008-12-08          0.18625
> 2008-12-09               NA
> 2008-12-10               NA
> 2008-12-11               NA
> 2008-12-12          0.11875
> 2008-12-15          0.11938
> 2008-12-16               NA
> 2008-12-17          0.13250
> 2008-12-18               NA
> 2008-12-19          0.11000
(Continue reading)

Rodrigo Aluizio | 1 Jan 14:14 2009
Picon

RES: How do I plot multiple XY plots on the same graph

Also, you can take a look at ?matplot function, depending on the type of
data and graphic output you want, it may b useful.

Best Wishes
___________________________________
MSc. Rodrigo Aluizio
Centro de Estudos do Mar/UFPR
Laboratório de Micropaleontologia
Avenida Beira Mar s/n - CEP 83255-000
Pontal do Paraná - PR - BRASIL
Fone: (0**41) 3455-1496 ramal 217
Fax: (0**41) 3455-1105

-----Mensagem original-----
De: r-help-bounces <at> r-project.org [mailto:r-help-bounces <at> r-project.org] Em
nome de Carlos J. Gil Bellosta
Enviada em: quinta-feira, 1 de janeiro de 2009 10:27
Para: George Chen
Cc: r-help <at> r-project.org
Assunto: Re: [R] How do I plot multiple XY plots on the same graph

Hello,

You can use plot for the first plot and points for the subsequent ones.

Points will add new points to the existing plot reusing the axes,
labels, etc.

Best regards,

(Continue reading)


Gmane