[R] changing single to double backslash

2006-05-17 Thread Cézar Freitas
Hi, all. I didn't find something like this in the faq list: I wound like build a function to substitute single backslashes in a string to double: ChangeSlash-function(dir) ... so ChangeSlash(C:\mydocs\test) returns C:\\mydocs\\test Thanks, C.

[R] apply(table) miss factor structure

2006-04-19 Thread Cézar Freitas
Hi, all. I didn't find something similar to this problem in past list. I have a data frame (named restr) where some columns are factors, like you can see: table(restr[,p1]) 0 1 2 3 4 5 0 26 1 0 1 0 table(restr[,p2]) 0 1 2 3 4 5 6 0 13 11 1 2 1 0 When I use apply,

[R] short plots: lwd, margin and postscript behavior

2005-02-17 Thread Cézar Freitas
Hi all. I'm working with a short plot (3x3 inches), but the results (via postscript command) are not nice. The lwd command don't affect the lines (that are very large) and the margins don't change using oma, mai, mar, ... Below I put an example. Moreover, save the graphics via postscript command

Re: [R] short plots: lwd, margin and postscript behavior

2005-02-17 Thread Cézar Freitas
I tested in R versions 1.8.1 and 2, but doesn't works. The attached plots can explain this. And mar isn't a parameter to postscript command. If I use in par, it doesn't affect the outpu. Thanks, C. --- Uwe Ligges [EMAIL PROTECTED] escreveu: Cézar Freitas wrote: Hi all. I'm working

Re: [R] short plots: lwd, margin and postscript behavior

2005-02-17 Thread Cézar Freitas
Thank you so much, but the commands in par doesn't affect the pictures generated by postscript. For example, I put lwd=3, and the postscript file is the same, using par(lwd=3) or par(lwd=.5)... --- Uwe Ligges [EMAIL PROTECTED] escreveu: Cézar Freitas wrote: I tested in R versions 1.8.1

[R] histogram and boxplot in a same postscript

2005-02-16 Thread Cézar Freitas
Hi, all. I need plot a boxplot under a histogram like below, but some configs are troubled: - the boxplot contours the plot, even if I put bty=n, modifying the histogram plot; - I changed the configs of axis to do a 3x3 inches plot, but the result is 2 different axis. For example, the code below

[R] Re: histogram ... postscript - width of lines / plot margins

2005-02-16 Thread Cézar Freitas
*yz/3, boxwex=1.5*yz, bty=n, axes=FALSE) points(q[4], -2*yz/3, col=1, pch=+, cex=.5) dev.off() --- Uwe Ligges [EMAIL PROTECTED] escreveu: Cézar Freitas wrote: Hi, all. I need plot a boxplot under a histogram like below, but some configs are troubled: - the boxplot contours