[R] win.graph() with more than one Lattice plot

From: Paulo Cardoso <pecardoso_at_netcabo.pt>
Date: Wed, 14 May 2008 21:53:38 +0100

Is is possible to accomodate more than a single independent (not resulting from arranjment of layout=c()) lattice graphs in a single win.graph() device?
Thanks in advance,  

PS Maybe duplicated  

Paulo


De: r-help-bounces_at_r-project.org em nome de Roland Rau Enviada: qua 14-05-2008 17:06
Para: 'r-help_at_stat.math.ethz.ch'
Assunto: [R] strip white in character strings

Dear all,

I have several datasets and I want to generate pdf plots from them. I also want to generate automatically the names of the files. They are country-specific and the element mycurrentdata[1,1] contains this information.

So what I do is something like this:
pdf(file=paste(mycurrentdata[1,1], ".pdf", sep=""), width=...etc)

The only problem I have is that some of the country names contain white space (e.g., "United Kingdom"). This is no problem for generating the pdf plots but it may become problematic during further processing (e.g. incl. the plots in LaTeX documents).

Is there an easy function to strip white space out of character strings (similar to the strip.white=TRUE option in read.table/scan)?

I'd appreciate any kind of help and I hope I did not miss anything completely obvious.

Thanks,
Roland



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.

        [[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.

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. Received on Thu 15 May 2008 - 00:09:55 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 15 May 2008 - 00:30:38 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive