Re: [R] Plot(x,y) help

2012-11-26 Thread YAddo
Thanks Jim and Rui. -- View this message in context: http://r.789695.n4.nabble.com/Plot-x-y-help-tp4650874p4650906.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinf

Re: [R] Plot(x,y) help

2012-11-26 Thread Rui Barradas
Hello, You had a typo in the lines() instruction, the parenthesis didn't close after c(y...). Anyway, I'm not sure I understand but to have horizontal lines, just reverse the roles of x and y. (And change pch = "_" to pch = "|"). plot(y, x, type="n",axes=F, xlab="PR(95% CI)",ylab=" ") points

Re: [R] Plot(x,y) help

2012-11-26 Thread jim holtman
Try this code that uses "segments" to draw in the bars # put data into a nicer form y=c(1.73,1.30,2.30, 1.83,1.36,2.45,1.46,1.07,2.00,1.58,1.15,2.17) ym <- matrix(y , ncol = 3 , byrow = TRUE , dimnames = list(NULL, c("Val", "Lower", "Upper")) ) ym <- cbind(ym, x = 1:4) # add the x

[R] Plot(x,y) help

2012-11-26 Thread YAddo
Dear All: I would any appreciate any help with this plot I am struggling with. I have 4 estimates (95% CIs) I want to plot. I want the CI lines to be horizontal on each plotted point. I was trying to tweak some old codes (was for a vertical CI lines) into horizontal but not much dice. Many th

Re: [R] plot(x,y xlab=NULL,ylab=NULL) but labels still visible.

2010-11-21 Thread Peter Ehlers
On 2010-11-21 08:02, madr wrote: here's the code x= c(1,5,7,3,4) y= c(2,4,5,2,5) plot(x,y,ylim=c(-20,20),xlim=c(min(x),max(x)),pch='X',col = rgb(0, 0, 0, 0.5), xaxt=NULL,yaxt=NULL, xlab=NULL,ylab=NULL) and x and y are still visible If you just want to remove both axis titles (xlab and ylab),

Re: [R] plot(x,y xlab=NULL,ylab=NULL) but labels still visible.

2010-11-21 Thread David Winsemius
On Nov 21, 2010, at 11:02 AM, madr wrote: here's the code x= c(1,5,7,3,4) y= c(2,4,5,2,5) plot(x,y,ylim=c(-20,20),xlim=c(min(x),max(x)),pch='X',col = rgb(0, 0, 0, 0.5), xaxt=NULL,yaxt=NULL, xlab=NULL,ylab=NULL) and x and y are still visible ?par for valid xaxt and yaxt values. And unlea

Re: [R] plot(x,y xlab=NULL,ylab=NULL) but labels still visible.

2010-11-21 Thread Luke Miller
Replace the xlab=NULL and ylab=NULL in your example code with xlab="" and ylab="" to remove the "x" and "y" labels on your axes. If you're also trying to remove the ticks and tick labels, substitute xaxt="n" and yaxt="n" into your code. x= c(1,5,7,3,4) y= c(2,4,5,2,5) plot(x,y,ylim=c(-20,20),xlim=

Re: [R] plot(x,y xlab=NULL,ylab=NULL) but labels still visible.

2010-11-21 Thread madr
here's the code x= c(1,5,7,3,4) y= c(2,4,5,2,5) plot(x,y,ylim=c(-20,20),xlim=c(min(x),max(x)),pch='X',col = rgb(0, 0, 0, 0.5), xaxt=NULL,yaxt=NULL, xlab=NULL,ylab=NULL) and x and y are still visible -- View this message in context: http://r.789695.n4.nabble.com/plot-x-y-xlab-NULL-ylab-NULL-but

Re: [R] plot(x,y xlab=NULL,ylab=NULL) but labels still visible.

2010-11-21 Thread David Winsemius
On Nov 21, 2010, at 10:21 AM, madr wrote: Labels are still present on graph render, their names are x and y that is the same as I used on the variables to supply data for chart. How to get rid of them. The term "labels" as used in functions is different than the graphical objects affe

[R] plot(x,y xlab=NULL,ylab=NULL) but labels still visible.

2010-11-21 Thread madr
Labels are still present on graph render, their names are x and y that is the same as I used on the variables to supply data for chart. How to get rid of them. -- View this message in context: http://r.789695.n4.nabble.com/plot-x-y-xlab-NULL-ylab-NULL-but-labels-still-visible-tp3052439p3052439.h

Re: [R] Plot(x,y)

2009-08-18 Thread milton ruser
Hi malcolm, sorry but your post continue with pour quality, because it is not reproducible, it is!? By the way, gavin.simp...@ucl.ac.uk wrote: . You really shouldn't call your data, 'data' as it will get very confusing when you start using modelling functions and using the data argument, or u

Re: [R] Plot(x,y)

2009-08-18 Thread Michael Knudsen
On Tue, Aug 18, 2009 at 6:59 PM, David Winsemius wrote: > ITYM: > > plot(data$V6, data$V5, col="red") Yup! My mistake. -- Michael Knudsen micknud...@gmail.com http://lifeofknudsen.blogspot.com/ __ R-help@r-project.org mailing list https://stat.ethz.c

Re: [R] Plot(x,y)

2009-08-18 Thread David Winsemius
On Aug 18, 2009, at 1:40 AM, Michael Knudsen wrote: On Sun, Aug 16, 2009 at 9:19 PM, malcolm Crouch wrote: plot(V6,V5, col="red") or plot(V6,V5) It seems that V5 and V6 are column names in your data matrix. If your matrix is called data, you should use plot(x$V6,x$V5,col="red") ITYM:

Re: [R] Plot(x,y)

2009-08-18 Thread Michael Knudsen
On Sun, Aug 16, 2009 at 9:19 PM, malcolm Crouch wrote: >> plot(V6,V5, col="red") > or >> plot(V6,V5) It seems that V5 and V6 are column names in your data matrix. If your matrix is called data, you should use plot(x$V6,x$V5,col="red") instead. Best, Michael -- Michael Knudsen micknud...@gmai

Re: [R] Plot(x,y)

2009-08-16 Thread Remko Duursma
What is the problem exactly? Remko - Remko Duursma Post-Doctoral Fellow Centre for Plants and the Environment University of Western Sydney Hawkesbury Campus Richmond NSW 2753 Dept of Biological Science Macquarie University North Ryde NSW 2109

Re: [R] Plot(x,y)

2009-08-16 Thread malcolm Crouch
My apologies for the poor quality of the last post. Query > plot(V6,V5, col="red") or > plot(V6,V5) the graph is attached. Data V5 V6 2063 0.009179148 -8117667.885 2064 0.03854349 -8117963.045 2065 -0.018345998 -8117980.935 2066 0.023662906 -8118013.245 206

[R] Plot(x,y)

2009-08-16 Thread malcolm Crouch
Hi , I am using the plot function for some data , and the plot is coming back pure black , with scales on the side . Regards Malcolm [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listin