[R] Plotting confidence intervals of two response on same graph (panel).

2010-06-17 Thread Kim Jung Hwa
Hello! I would like to draw a graph like the following: http://www.optics.rochester.edu/workgroups/cml/opt307/spr04/pavel/plot_small.jpg Aim is to plot confidence intervals of treatments for X(=response1) and Y(=response2) axis simultaneously to visualize aggreement of confidence interval for

Re: [R] Plotting confidence intervals of two response on same graph (panel).

2010-06-17 Thread Kim Jung Hwa
will do what you want. Bill At 9:25 AM -0400 6/17/10, Kim Jung Hwa wrote: Hello! I would like to draw a graph like the following: http://www.optics.rochester.edu/workgroups/cml/opt307/spr04/pavel/plot_small.jpg Aim is to plot confidence intervals of treatments for X(=response1) and Y

[R] Order labels in qplot() - ggplot2 {help}

2010-06-10 Thread Kim Jung Hwa
Hello, I want to arrage the label according to my preference eg.. (va, vp, a, b, c) but don't know how to supress default ordering. Any suggestions? Please try the code below: n - c(va, vp, a, b, c) p - c(2, 2,1, 3,5) pm- c(3,4,2,5,4) pn - c(1,1,1,2,3) x-data.frame(cbind(n,p,pm,pn))

[R] persp(); help with 'tck' option

2010-05-26 Thread Kim Jung Hwa
Hi All, I'm using 'tck' option to *reduce* the length of tick marks but it is not working, can anyone please tell me where I'm going wrong... require(graphics) require(grDevices) x - seq(-10, 10, length= 30) y - x f - function(x,y) { r - sqrt(x^2+y^2); 10 * sin(r)/r } z - outer(x, y, f)

[R] lattice 'scales' option help

2010-05-24 Thread Kim Jung Hwa
Hi All, I'm trying to draw boxplots. I'm having a hard time to get ticks labels on multiple panels using 'alternating' option. # R Code: # May not be the best example, please just look into 'scales' option library(lattice) data(OrchardSprays) dta - subset(OrchardSprays, OrchardSprays$rowpos %in%

Re: [R] lattice 'scales' option help

2010-05-24 Thread Kim Jung Hwa
Thanks Dennis and Peter, it worked. On Mon, May 24, 2010 at 12:44 PM, Peter Ehlers ehl...@ucalgary.ca wrote: On 2010-05-24 9:38, Kim Jung Hwa wrote: Hi All, I'm trying to draw boxplots. I'm having a hard time to get ticks labels on multiple panels using 'alternating' option. # R Code

[R] step function

2010-05-10 Thread Kim Jung Hwa
Hi All I need some help with plotting a step function, currently I'm using sfun - stepfun(c(1, 2, 5,10, 20), c(0, 11, 22, 33, 44, 0), f=0) plot(sfun, pch=NA, main=, xlim=c(1,20)) which I working fine, but my data is in the following format: Min Max Value 1 2 11 2 5 22 510 33 10 20 44 1. To

[R] Visualizing binary response data?

2010-05-04 Thread Kim Jung Hwa
Hi All, I'm dealing with binary response data for the first time, and I'm confused about what kind of graphics I could explore in order to pick relevant predictors and their relation with response variable. I have 8-10 continuous predictors and 4-5 categorical predictors. Can anyone suggest what

[R] reshaping data

2010-03-31 Thread Kim Jung Hwa
Hi All, Can someone help me reshape following data: Var1 Var2 Val A X 1 A Y 2 A Z 3 B X 4 B Y 5 B Z 6 to some kind of matrix/tabular format (preferably as a matrix), may be like Var1 X Y Z A 1 2 3 B 4 5 6 Any help would be greatly appreciated, Kim [[alternative HTML version deleted]]

Re: [R] reshaping data

2010-03-31 Thread Kim Jung Hwa
PM, Henrique Dallazuanna www...@gmail.comwrote: Try this: xtabs(Val ~ Var1 + Var2, data = x) On Wed, Mar 31, 2010 at 3:23 PM, Kim Jung Hwa kimhwamaill...@gmail.com wrote: Hi All, Can someone help me reshape following data: Var1 Var2 Val A X 1 A Y 2 A Z 3 B X 4 B Y 5 B Z

Re: [R] reshaping data

2010-03-31 Thread Kim Jung Hwa
Actually, apart from melt() in reshape package. On Wed, Mar 31, 2010 at 2:37 PM, Kim Jung Hwa kimhwamaill...@gmail.comwrote: Thanks Henrique and Stephan for your reply! Henrique, I'm planning to do some arthitmetic operations on tranformed (matrix) data and then would like to convert it back

Re: [R] One main title and One legend for multiple lattice plots

2010-03-19 Thread Kim Jung Hwa
a lot! Kim On Fri, Mar 19, 2010 at 6:24 AM, Deepayan Sarkar deepayan.sar...@gmail.comwrote: On Fri, Mar 19, 2010 at 8:37 AM, Kim Jung Hwa kimhwamaill...@gmail.com wrote: Hi David, Thank you for your reply. I'm sorry if I've misconveyed my question: here it goes again: *** I want

[R] multiple print commands in win.metafile()

2010-03-18 Thread Kim Jung Hwa
Hi All, I need a file which I can import to MS Word, I'm trying win.metafile(), but it does not seem to support multiple print commands at once (please see below). Is there an alternative to get plots file which can be used in powerpoint/word? # R code: # this does not work; but same thing works

Re: [R] multiple print commands in win.metafile()

2010-03-18 Thread Kim Jung Hwa
. On Thu, Mar 18, 2010 at 12:36 PM, Kim Jung Hwa kimhwamaill...@gmail.com wrote: Hi All, I need a file which I can import to MS Word, I'm trying win.metafile(), but it does not seem to support multiple print commands at once (please see below). Is there an alternative to get plots file which

Re: [R] multiple print commands in win.metafile()

2010-03-18 Thread Kim Jung Hwa
, 2010 at 1:41 PM, Kim Jung Hwa kimhwamaill...@gmail.comwrote: Hi Jim, thank you for your reply. Apart from win.metafile(), is there some other function available which can handle multiple prints or par(mfrow=c(2,2)) command and eventually can be used in powerpoint/word. thanks, Kim On Thu

[R] One main title and One legend for multiple lattice plots

2010-03-18 Thread Kim Jung Hwa
Hi All, Can anyone please help me with getting a single title and legend for both the plots in the following R code. I'll eventually be using .wmf file. # R code: library(lattice) p1 - xyplot(decrease ~ treatment, OrchardSprays, groups = rowpos, type = a, main=Same title / legend,

Re: [R] One main title and One legend for multiple lattice plots

2010-03-18 Thread Kim Jung Hwa
=TRUE) print(p2, split=c(2,2,2,2)) dev.off() Thanks, Kim On Thu, Mar 18, 2010 at 10:21 PM, David Winsemius dwinsem...@comcast.netwrote: On Mar 18, 2010, at 10:10 PM, Kim Jung Hwa wrote: Hi All, Can anyone please help me with getting a single title and legend for both the plots in the following

Re: [R] help with lattice boxplots...

2010-03-02 Thread Kim Jung Hwa
Thanks a lot All ! On Mon, Mar 1, 2010 at 12:22 PM, Walmes Zeviani walmeszevi...@hotmail.comwrote: In complement to Dallazuanna's solution, use box.umbrella=list() inside par.settings() to change the default color and line type specification: bwplot(y~x, data=ex, pch=|,

Re: [R] R / R+ Webminar *** R-PLUS Rocks: Interactive, Comprehensible and Highly Visual. March 12th @ 12PM ET (USA Time)

2010-03-02 Thread Kim Jung Hwa
Is R-PLUS free as R is? Thanks, On Tue, Mar 2, 2010 at 4:28 PM, s...@xlsolutions-corp.com s...@xlsolutions-corp.com wrote: Welcome to R/ R-PLUS Webminar Series. R-PLUS 3.3 Rocks: Interactive, Comprehensible and Highly Visual. http://www.xlsolutions-corp.com/webminar.asp. March 12th @ 12PM

[R] help with lattice boxplots...

2010-03-01 Thread Kim Jung Hwa
Hi All, I need a small help with following code: I'm trying to convert dashed lines to regular ones; and changing default blue border color to say black... but I'm doing it wrong and its not working. Can anyone help please. Thanks, Code: require(lattice) ex - data.frame(x=1:10, y=rep(c(A,B), 5))

[R] cloud() / wireframe()

2010-02-25 Thread Kim Jung Hwa
Hi All, I need some help with how to define: 1. colors in levelplot() 2. fixing labels in auto.key() using wireframe(). Sometimes I get points in legend and sometimes I'm getting different signs for each line like plus sign, star, circle, etc... how can I be consistent with these. I'm aware of

[R] wireframe() help {Lattice}

2010-02-11 Thread Kim Jung Hwa
Hi All, I'm trying a 3D-plot using wireframe() from Lattice package. Below is my code and sample data (read in dta object). I'm wondering if it is possible to make center grid (curved) line more prominent (or bold). The curved line I'm talking about is the center line drawn for a fixed value of

[R] Non-linearity test in R

2010-02-05 Thread Kim Jung Hwa
Hi All, I'm fitting a linear (multiple) regression model with 3 predictors + their interactions. Can anyone suggest some test in R which can help me know whether I need a non-linear (regression) model or some transformation? I'm mostly concerned about finding a way to know whether I should fit a

[R] SAS Type 1 / Type 3 Analysis Equivalent.

2010-01-27 Thread Kim Jung Hwa
Hi All, I'm using glm() in R to perform Poisson regression, I'm wondering if its possible to get equivalent Type 1 / Type 3 Analysis (similar to one in PROC GENMOD). Thanks, Kim [[alternative HTML version deleted]] __ R-help@r-project.org

[R] expression()

2009-12-20 Thread Kim Jung Hwa
), ylab = Temperature (degreeF), scales = list(x = list(abbreviate = TRUE, minlength = 5))) ~Kim Jung Hwa [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] plotting polynomial regression line

2009-12-20 Thread Kim Jung Hwa
Amit, please provide gp.txt file. On Sun, Dec 20, 2009 at 1:47 PM, Jason Morgan jwm-r-h...@skepsi.net wrote: Hello Amit, On 2009.12.20 19:35:09, Amit wrote: Dear All, I am trying to plot polynomial regression line to a scatterplot. I did following so far: x=c(1:9335)

[R] ggplot2 help.

2009-12-19 Thread Kim Jung Hwa
please suggest something? Thanks in advance, ~Kim Jung Hwa [[alternative HTML version deleted]] __ R-help@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

[R] forest() in metafor package.

2009-12-13 Thread Kim Jung Hwa
Hi All, I'm using forest() from metafor package to plot forest plots. Here is the code e-1:6 v-seq(2,3,.20) forest(e,v) I want to edit default labels Study 1, Study 2 and so on... how can I do it? I tried ?forest(), but couldn't find any details. Any suggestions? Thanks, Kim

Re: [R] forest() in metafor package.

2009-12-13 Thread Kim Jung Hwa
Please ignore this email. Got this link: http://cran.r-project.org/web/packages/metafor/metafor.pdf Thanks, Kim On Sun, Dec 13, 2009 at 6:14 PM, Kim Jung Hwa kimhwamaill...@gmail.comwrote: Hi All, I'm using forest() from metafor package to plot forest plots. Here is the code e-1:6 v-seq

[R] help: forest plots

2009-12-13 Thread Kim Jung Hwa
Hi All, I'm fitting a Poisson regression. And I want to plot 95% Confidence Interval of Regression Estimates. After coming back to original scale (using following formula): exponential(estimate +/- 1.96*SE), at best I can get the output in the form of estimates, lower_limit, upper_limit

Re: [R] help: forest plots

2009-12-13 Thread Kim Jung Hwa
. chainsawti...@gmail.com wrote: This one does required the metafor package. http://tables2graphs.com/doku.php?id=04_regression_coefficients On Mon, Dec 14, 2009 at 8:13 AM, Kim Jung Hwa kimhwamaill...@gmail.com wrote: Hi All, I'm fitting a Poisson regression. And I want to plot 95% Confidence

[R] Frequency tables.

2009-12-11 Thread Kim Jung Hwa
Hi All, I'm a SAS user but I'm very much interested in learning R. I use ODS system in SAS to make nice frequency tables. Is it possible to export the output of table() [in TABULAR FORM]? So, that I can use those directly for publications? Thank you. # R Code: library(datasets) Orange

Re: [R] Frequency tables.

2009-12-11 Thread Kim Jung Hwa
be interested in xtable (can output either to LaTeX or html), R2html, or prettyR. -Ista On Fri, Dec 11, 2009 at 6:55 PM, Kim Jung Hwa kimhwamaill...@gmail.com wrote: Hi All, I'm a SAS user but I'm very much interested in learning R. I use ODS system in SAS to make nice frequency tables