Re: [R] Scatterplot of many variables against a single variable

2017-11-28 Thread Engin YILMAZ
Thanks all users Virus-free. www.avast.com <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9F

Re: [R] Scatterplot of many variables against a single variable

2017-11-27 Thread Ismail SEZEN
> On 27 Nov 2017, at 11:56, Engin YILMAZ wrote: > > Dear > > I try to realize one scatter matrix which draws *one single variable to all > variables* with *regression line* . You can see my eviews version in the > annex . > > How can I draw this graph with R studio? A tiny note; You do calcu

Re: [R] Scatterplot of many variables against a single variable

2017-11-27 Thread MacQueen, Don
Here's the quickest way I know of to get a scatterplot of many variables against a single variable. I create example data to illustrate. x <- 1:10 ys <- matrix( runif(30), ncol=3) matplot(x,ys) ## or, a little better, matplot(x,ys, type='b') To add regression lines: for (iy in seq(ncol(ys))) a

Re: [R] Scatterplot of many variables against a single variable

2017-11-27 Thread Engin YILMAZ
Dear Users I embed my sample https://ibb.co/dhc23R or https://ibb.co/dhc23R";>https://preview.ibb.co/eEDaOR/scattersample.jpg"; alt="scattersample" border="0"> Virus-free. www.avast.co

Re: [R] Scatterplot of many variables against a single variable

2017-11-27 Thread Jeff Newmiller
You do not appear to have read the Posting Guide mentioned at the bottom if this and every posting on the mailing list. Only a very few attachment types are allowed through the mailing list... and due to the way many email programs fail to identify them properly, even those few types may not m

Re: [R] Scatterplot of many variables against a single variable

2017-11-27 Thread Ulrik Stervbo
ggplot and facets might be useful. Ulrik Ismail SEZEN schrieb am Mo., 27. Nov. 2017, 14:06: > > > On 27 Nov 2017, at 13:59, Engin YILMAZ wrote: > > > > Dear Berger and Jim > > > > Can you see my eviews example in the annex? (scattersample.jpg) > > > > Sincerely > > Engin > > Please, use an ima

Re: [R] Scatterplot of many variables against a single variable

2017-11-27 Thread Ismail SEZEN
> On 27 Nov 2017, at 13:59, Engin YILMAZ wrote: > > Dear Berger and Jim > > Can you see my eviews example in the annex? (scattersample.jpg) > > Sincerely > Engin Please, use an image hosting service (i.e. https://imgbb.com/) to share images in the list and share the link in the email. _

Re: [R] Scatterplot of many variables against a single variable

2017-11-27 Thread Engin YILMAZ
Dear Berger and Jim Can you see my eviews example in the annex? (scattersample.jpg) Sincerely Engin 2017-11-27 13:27 GMT+03:00 Eric Berger : > LOL. Great reply Jim. > (N.B. Jim's conclusion is "debatable" by a judicious choice of seed. e.g. > set.seed(79) suggests that making the request more r

Re: [R] Scatterplot of many variables against a single variable

2017-11-27 Thread Eric Berger
LOL. Great reply Jim. (N.B. Jim's conclusion is "debatable" by a judicious choice of seed. e.g. set.seed(79) suggests that making the request more readable will actually lower the number of useful answers. :-)) On Mon, Nov 27, 2017 at 11:42 AM, Jim Lemon wrote: > Hi Engin, > Sadly, your illustr

Re: [R] Scatterplot of many variables against a single variable

2017-11-27 Thread Jim Lemon
Hi Engin, Sadly, your illustration was ambushed on the way to the list. Perhaps you want something like this: # proportion of useful answers to your request pua<-sort(runif(20)) #legibility of your request lor<-sort(runif(20))+runif(20,-0.5,0.5) # is a data set provided? dsp<-sort(runif(20))+runif

[R] Scatterplot of many variables against a single variable

2017-11-27 Thread Engin YILMAZ
Dear I try to realize one scatter matrix which draws *one single variable to all variables* with *regression line* . You can see my eviews version in the annex . How can I draw this graph with R studio? Sincerely Engin YILMAZ __ R-help@r-project.org

Re: [R] Scatterplot : smoothing colors according to density of points

2015-06-14 Thread jim holtman
check out the 'hexbin' package for making scatter plots that have a lot of points overlapping in a small area. Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Tue, Jun 2, 2015 at 9:51 AM, Adams, Jean wrot

Re: [R] Scatterplot : smoothing colors according to density of points

2015-06-02 Thread Adams, Jean
Try this. Jean D <- structure(list( id = structure(1:6, .Label = c("O13297", "O13329", "O13525", "O13539", "O13541", "O13547"), class = "factor"), X = c(44.44, 31.272085, 6.865672, 14.176245, 73.275862, 28.991597), Y = c(21.6122, 4.0159, 2.43884, 7.81217, 3.59012, 258.999)), .

[R] Scatterplot : smoothing colors according to density of points

2015-06-02 Thread Benjamin Dubreuil
Hello everyone, I have a data frame D with 4 columns id,X,Y,C. I want to plot a simple scatter plot of D$X vs. D$Y and using D$C values as a color. (id is just a text string not used for the plot) But actually, I don't want to use the raw values of D$C, I would prefer to calculate the average v

Re: [R] scatterplot using plot() function with factorial data

2014-08-27 Thread Ista Zahn
Hi Luigi, See in line. On Wed, Aug 27, 2014 at 9:42 AM, Luigi Marongiu wrote: > Dear all, > I would like to ask whether is possible to draw a scatterplot using > the simple plot() function when the data is factorial. Without the > addition of the argument factor(), plot() represent the factorial

Re: [R] scatterplot using plot() function with factorial data

2014-08-27 Thread Richard M. Heiberger
With lattice graphics, yes libary(lattice) xyplot(y ~ z, data=my.data) bwplot(y ~ z, data=my.data) stripplot(y ~ z, data=my.data) With base graphics, probably not. More importantly, don't use attach. It will get you into trouble. In this case, it didn't work for me because I had a variable name

Re: [R] scatterplot using plot() function with factorial data

2014-08-27 Thread David L Carlson
nesday, August 27, 2014 8:42 AM To: r-help@r-project.org Subject: [R] scatterplot using plot() function with factorial data Dear all, I would like to ask whether is possible to draw a scatterplot using the simple plot() function when the data is factorial. Without the addition of the argument fact

[R] scatterplot using plot() function with factorial data

2014-08-27 Thread Luigi Marongiu
Dear all, I would like to ask whether is possible to draw a scatterplot using the simple plot() function when the data is factorial. Without the addition of the argument factor(), plot() represent the factorial data on a linear scale whereas using this argument transforms plot() from a scatterplot

Re: [R] scatterplot of two y's

2014-02-19 Thread MacQueen, Don
The quickest way, using the example data, would be matplot( df$x, df[,-1]) Obviously doesn't have the nice ggplot style, but it does do what was requested. And depending on the context and ultimate goal, may be sufficient. Simple improvements are easy: matplot( df$x, df[,-1], xlab='x',

Re: [R] scatterplot of two y's

2014-02-17 Thread Jim Lemon
> Hello, > > Sorry if this is repeated somewhere, I imagine it must be a common issue > but I can't find an answer! > > I have a data.frame with two responses, example (response variables to x > are y1 and y2): > > df<-data.frame(x=1:10,y1=1:10,y2=11:20) > > I would like to see it on the same plot

Re: [R] scatterplot of two y's

2014-02-17 Thread arun
Hi, Try: library(reshape2)  df2New <- melt(df,id.var="x")  ggplot(df2New,aes(x=x,y=value,colour=variable))+geom_point(shape=1) A.K. On Monday, February 17, 2014 5:42 PM, Ramiro Barrantes wrote: Hello, Sorry if this is repeated somewhere, I imagine it must be a common issue but I can't find

[R] scatterplot of two y's

2014-02-17 Thread Ramiro Barrantes
Hello, Sorry if this is repeated somewhere, I imagine it must be a common issue but I can't find an answer! I have a data.frame with two responses, example (response variables to x are y1 and y2): df<-data.frame(x=1:10,y1=1:10,y2=11:20) I would like to see it on the same plot with different c

Re: [R] Scatterplot and Causality

2013-04-22 Thread Belmont, John W
: Re: [R] Scatterplot and Causality Fortune nomination. cheers, Rolf On 23/04/13 08:31, Bert Gunter wrote: (In response to a question about inferring causality from observational data.) > As others have said: > > (Short answer) No. > > (Long Answer) Don&

Re: [R] Scatterplot and Causality

2013-04-22 Thread Rolf Turner
Fortune nomination. cheers, Rolf On 23/04/13 08:31, Bert Gunter wrote: (In response to a question about inferring causality from observational data.) As others have said: (Short answer) No. (Long Answer) Don't be ridiculous. _

Re: [R] Scatterplot and Causality

2013-04-22 Thread Joerg Luedicke
Nevertheless, some people try: http://www.kaggle.com/c/cause-effect-pairs Joerg On Mon, Apr 22, 2013 at 4:31 PM, Bert Gunter wrote: > Inline. > > > On Mon, Apr 22, 2013 at 1:15 PM, Lorenzo Isella > wrote: >> On Mon, 22 Apr 2013 17:27:05 +0200, Robert Baer wrote: >> >> >>> It strikes me that

Re: [R] Scatterplot and Causality

2013-04-22 Thread Bert Gunter
Inline. On Mon, Apr 22, 2013 at 1:15 PM, Lorenzo Isella wrote: > On Mon, 22 Apr 2013 17:27:05 +0200, Robert Baer wrote: > > >> It strikes me that this is not a particularly productive approach to >> causality, particularly in an observational setting. You would need to >> design an experiment

Re: [R] Scatterplot and Causality

2013-04-22 Thread Lorenzo Isella
On Mon, 22 Apr 2013 17:27:05 +0200, Robert Baer wrote: It strikes me that this is not a particularly productive approach to causality, particularly in an observational setting. You would need to design an experiment where you had a known manipulation of an explanatory variable and studie

Re: [R] Scatterplot and Causality

2013-04-22 Thread Robert Baer
On 4/22/2013 9:48 AM, Lorenzo Isella wrote: Dear All, I hope this is not too off topic. I am given a set of scatteplots (nothing too fancy; think about a normal x-y 2D plot). I do not deal with two time series (indeed I have no info about time). If I call A=(A1,A2,...) and B=(B1, B2, ...) the 2 v

Re: [R] Scatterplot and Causality

2013-04-22 Thread R. Michael Weylandt
On Mon, Apr 22, 2013 at 3:48 PM, Lorenzo Isella wrote: > Dear All, > I hope this is not too off topic. > I am given a set of scatteplots (nothing too fancy; think about a > normal x-y 2D plot). > I do not deal with two time series (indeed I have no info about time). > If I call A=(A1,A2,...) and B

Re: [R] Scatterplot and Causality

2013-04-22 Thread Duncan Murdoch
On 22/04/2013 10:48 AM, Lorenzo Isella wrote: Dear All, I hope this is not too off topic. I am given a set of scatteplots (nothing too fancy; think about a normal x-y 2D plot). I do not deal with two time series (indeed I have no info about time). If I call A=(A1,A2,...) and B=(B1, B2, ...) the 2

[R] Scatterplot and Causality

2013-04-22 Thread Lorenzo Isella
Dear All, I hope this is not too off topic. I am given a set of scatteplots (nothing too fancy; think about a normal x-y 2D plot). I do not deal with two time series (indeed I have no info about time). If I call A=(A1,A2,...) and B=(B1, B2, ...) the 2 variables (two vectors of numbers most of the c

Re: [R] Scatterplot, Color by Grade Category

2013-02-20 Thread Jim Lemon
On 02/20/2013 07:44 PM, David Arnold wrote: Hi, I have: hours=c(5,6,6,7,7,8,8,9,7,8,8,8,9,9,10,10,9,10,10,11,11,11,12); level=c(1.0,1.2,0.8,0.8,1.0,1.0,0.6,0.8,1.4,1.2,1.4,1.6, 1.2,1.4,1.0,1.4,1.6,1.6,1.8,1.4,1.6,1.8,1.6); grade=c(rep("First",8),rep("Second",8),rep("Third",7)) length(h

[R] Scatterplot, Color by Grade Category

2013-02-20 Thread David Arnold
Hi, I have: hours=c(5,6,6,7,7,8,8,9,7,8,8,8,9,9,10,10,9,10,10,11,11,11,12); level=c(1.0,1.2,0.8,0.8,1.0,1.0,0.6,0.8,1.4,1.2,1.4,1.6, 1.2,1.4,1.0,1.4,1.6,1.6,1.8,1.4,1.6,1.8,1.6); grade=c(rep("First",8),rep("Second",8),rep("Third",7)) length(hours) length(level) length(grade) data=data.fra

Re: [R] scatterplot with wrong line offset

2012-10-23 Thread John Fox
Dear Francisco, >From ?scatterplot: "reset.par: if TRUE then plotting parameters are reset to their previous values when scatterplot exits; if FALSE then the mar and mfcol parameters are altered for the current plotting device. Set to FALSE if you want to add graphical elements (such as li

[R] scatterplot with wrong line offset

2012-10-23 Thread fm3c2007
Hi All, I'm trying to do a Scatterplot (package: car), and add a line (just for reference). There is my code: #Code--- library("car") library("calibrate") G_T<-c("car","bike","boat") ave<-c(80,10,45) perf<-c(100,8

Re: [R] scatterplot x axis specifications

2012-08-03 Thread ClaraM
I had the same problem and was struggling to find the right codethat was so helpful, Sarah. thanks! -- View this message in context: http://r.789695.n4.nabble.com/scatterplot-x-axis-specifications-tp4630952p4639031.html Sent from the R help mailing list archive at Nabble.com. _

Re: [R] scatterplot x axis specifications

2012-05-22 Thread jhartsho
Thank you so much! I sat here staring forever and just couldn't see it. That's what a fresh pair of eyes are for!! Thanks! -- View this message in context: http://r.789695.n4.nabble.com/scatterplot-x-axis-specifications-tp4630952p4630978.html Sent from the R help mailing list archive at Nabble

Re: [R] scatterplot x axis specifications

2012-05-22 Thread David Winsemius
On May 22, 2012, at 1:59 PM, jhartsho wrote: I have created a scatter plot that has come out okay but I am having trouble with the x axis. My data consists of 4 treatments but these treatments are days so R keeps reading them as numeric and making my x axis continuous. Here is what I hav

Re: [R] scatterplot x axis specifications

2012-05-22 Thread Sarah Goslee
After fixing the error in your plot statement, this works for me: plot(pair$MC~pair$Day, pch=c(19,24)[as.factor(pair$Cookie)], xaxt="n", main='Paired t Test', xlab='Days in Field', ylab='Moisture Content (Percent)', xlim=c(0,45)) axis(1, c(0, 15, 30, 45)) I also added

Re: [R] scatterplot x axis specifications

2012-05-22 Thread jhartsho
Bolt Day CookieMC 1 MCA01 0 Bottom 60.28 2 MCB01 0 Bottom 83.63 3 MCC01 0 Bottom 48.34 4 MCB02 0 Bottom 84.52 5 MCA05 0 Bottom 74.92 6 MCA01 0Top 65.35 7 MCB01 0Top 88.68 8 MCC01 0Top 29.19 9 MCB02 0Top 82.63 10 MCA05 0Top 77.61 MC151 1

Re: [R] scatterplot x axis specifications

2012-05-22 Thread Uwe Ligges
On 22.05.2012 19:59, jhartsho wrote: I have created a scatter plot that has come out okay but I am having trouble with the x axis. My data consists of 4 treatments but these treatments are days so R keeps reading them as numeric and making my x axis continuous. Here is what I have so far: pl

[R] scatterplot x axis specifications

2012-05-22 Thread jhartsho
I have created a scatter plot that has come out okay but I am having trouble with the x axis. My data consists of 4 treatments but these treatments are days so R keeps reading them as numeric and making my x axis continuous. Here is what I have so far: plot(pair$MC~pair$Day, pch=c(19,24)[as.fac

[R] Scatterplot matrix with partly transformed axis

2012-04-10 Thread Johannes Radinger
Hi, I am wondering if anybody has experience with scatterplot matrices where some (but NOT all) axis are transformed and the labels are nicely plotted. So far I looked into 1) pairs() 2) scatterplotMatrix() from package 'car' 3) splom() from packagae 'lattice' 4) plotmatrix() from 'ggplot2' I ca

Re: [R] scatterplot to boxplot translation?

2011-12-09 Thread David Winsemius
s again, --Kelly V. From: David Winsemius [dwinsem...@comcast.net] Sent: Friday, December 09, 2011 11:14 AM To: Vining, Kelly Cc: r-help@r-project.org Subject: Re: [R] scatterplot to boxplot translation? On Dec 9, 2011, at 2:11 PM, Vining, Kelly wrote: My apologies if anyone is

Re: [R] scatterplot to boxplot translation?

2011-12-09 Thread Tom Fletcher
[mailto:r-help-boun...@r-project.org] On Behalf Of Vining, Kelly Sent: Friday, December 09, 2011 1:11 PM To: Vining, Kelly; r-help@r-project.org Subject: Re: [R] scatterplot to boxplot translation? My apologies if anyone is seeing this twice...looks like my previous message didn't come th

Re: [R] scatterplot to boxplot translation?

2011-12-09 Thread Uwe Ligges
(0, max(count$RPKM), by=100))) Uwe Ligges Thanks again, --Kelly V. From: David Winsemius [dwinsem...@comcast.net] Sent: Friday, December 09, 2011 11:14 AM To: Vining, Kelly Cc: r-help@r-project.org Subject: Re: [R] scatterplot to boxplot translation? On

Re: [R] scatterplot to boxplot translation?

2011-12-09 Thread Vining, Kelly
: Friday, December 09, 2011 11:14 AM To: Vining, Kelly Cc: r-help@r-project.org Subject: Re: [R] scatterplot to boxplot translation? On Dec 9, 2011, at 2:11 PM, Vining, Kelly wrote: > My apologies if anyone is seeing this twice...looks like my previous > message didn't come through.

Re: [R] scatterplot to boxplot translation?

2011-12-09 Thread David Winsemius
generate such a boxplot? ?cut From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org ] On Behalf Of Vining, Kelly Sent: Friday, December 09, 2011 11:01 AM To: r-help@r-project.org Subject: [R] scatterplot to boxplot translation?

Re: [R] scatterplot to boxplot translation?

2011-12-09 Thread Vining, Kelly
lto:r-help-boun...@r-project.org] On Behalf Of Vining, Kelly Sent: Friday, December 09, 2011 11:01 AM To: r-help@r-project.org Subject: [R] scatterplot to boxplot translation? <>__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/list

[R] scatterplot to boxplot translation?

2011-12-09 Thread Vining, Kelly
<>__ 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-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-21 Thread Kerry
Beautiful! It works perfectly, thanks! kb On Oct 21, 7:42 am, Jim Lemon wrote: > On 10/21/2011 06:25 AM, Kerry wrote: > > > Can someone please help me out with this? The ggplot2 suggestion works > > great but I've spent a few days trying to figure out how to plot 2 > > variables with it and I'm

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-21 Thread Kerry
Awesome, thank you so much for this! I plan to play around with this more next week with my actual data, but it provides a lot more options than I had before I posted. The link will help too. kb On Oct 20, 8:18 pm, Dennis Murphy wrote: > AFAIK, you can't 'add' two ggplot2 graphs together; the pr

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-21 Thread Jim Lemon
On 10/21/2011 06:25 AM, Kerry wrote: Can someone please help me out with this? The ggplot2 suggestion works great but I've spent a few days trying to figure out how to plot 2 variables with it and I'm stuck. Here's my example code: ... Hi Kerry, This isn't ggplot2, but it may do what you want.

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-20 Thread Kerry
If it would help get any assistance with my issue, here's another method I'm trying (using R sample data): ggplot(mtcars, aes(disp)) + geom_point(aes(y = mpg, colour = qsec))+ scale_colour_gradient(low="yellow", high="green")+ geom_point(aes(y = cyl, colour = qsec))+ scale_colour_gradient(low=

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-20 Thread Dennis Murphy
AFAIK, you can't 'add' two ggplot2 graphs together; the problem in this case is that the two color scales would clash. If you're willing to discretize the z values, then you could pull it off. Here's an example: d <- data.frame(x = rnorm(100), y = rnorm(100), z = factor(1 + (rnorm(100) > 0))) d1 <

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-20 Thread Kerry
Can someone please help me out with this? The ggplot2 suggestion works great but I've spent a few days trying to figure out how to plot 2 variables with it and I'm stuck. Here's my example code: library(ggplot2) #Here's the 1st plot x<-rnorm(100) y<-rnorm(100) z<-rnorm(100) d <- data.frame(x,y,z)

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-17 Thread Kerry
Yes, the qplot works great, but do you know how to allow for multiple plots? I want one variable to be plotted say from blue to red and another say from yellow to green but in the same graph, each having there own separate legends. I've tried print() and arrange() but no luck. Thanks again, kb On

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-17 Thread Kerry
Here's my loadable data in case it helps. It creates 2 separate plots which I'd like to be in the same graph with 2 separate legends. library(ggplot2) #Here's the 1st plot x<-rnorm(100) y<-rnorm(100) z<-rnorm(100) d <- data.frame(x,y,z) dg<-qplot(x,y,colour=z,data=d) dg + scale_colour_gradient(lo

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-17 Thread Kerry
Oh, I just saw your ggplot example, that works well too. However, it seems much of the options are hidden for changing the range of colors or the color types altogether. I'm currently looking through the ggplot ref manuals. Thanks, kb On Oct 2, 10:42 pm, Ben Bolker wrote: > Duncan Murdoch gmail

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-17 Thread Kerry
Thanks, I consider all of those options and tried some, but the z=color gradient seems the best option for my data. kb On Oct 2, 10:42 pm, Ben Bolker wrote: > Duncan Murdoch gmail.com> writes: > > > > > > > > > > > > > On 11-10-02 1:11 PM, Kerry wrote: > > > I have 3 columns of data and want to

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-02 Thread Ben Bolker
Duncan Murdoch gmail.com> writes: > > On 11-10-02 1:11 PM, Kerry wrote: > > I have 3 columns of data and want to plot each row as a point in a > > scatter plot and want one column to be represented as a color gradient > > (e.g. larger values being more red). Anyone know the command or > > packa

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-02 Thread Kerry
Yes, perfect! This I can work with. Thanks, KB On Oct 2, 3:55 pm, Duncan Murdoch wrote: > On 11-10-02 1:11 PM, Kerry wrote: > > > I have 3 columns of data and want to plot each row as a point in a > > scatter plot and want one column to be represented as a color gradient > > (e.g. larger  values

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-02 Thread Duncan Murdoch
On 11-10-02 1:11 PM, Kerry wrote: I have 3 columns of data and want to plot each row as a point in a scatter plot and want one column to be represented as a color gradient (e.g. larger values being more red). Anyone know the command or package for this? It's not a particularly effective displa

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-02 Thread Tal Galili
Here is one: http://cran.r-project.org/web/packages/scatterplot3d/index.html In the future, consider first searching: http://finzi.psych.upenn.edu/search.html http://rseek.org/ etc... Contact Details:--- Contact me: tal.gal...

[R] Scatterplot with the 3rd dimension = color?

2011-10-02 Thread Kerry
I have 3 columns of data and want to plot each row as a point in a scatter plot and want one column to be represented as a color gradient (e.g. larger values being more red). Anyone know the command or package for this? Thanks, KB __ R-help@r-project.o

Re: [R] Scatterplot Question

2011-02-01 Thread Dennis Murphy
Hi: Not sure, but perhaps you had something like this in mind: y <- runif(100) w <- matrix(y, nrow = 10) # fills in column-wise v <- apply(w, 2, cumsum) plot(1:100, y, type = 'l', col = 'blue') lines(1:100, as.vector(v), type = 'l', col = 'red') Reshaping into a matrix and using apply() to

Re: [R] Scatterplot Question

2011-02-01 Thread Petr Savicky
On Tue, Feb 01, 2011 at 10:51:12PM +1300, Surrey Jackson wrote: > Hello, > > I have some data where a number of events (the total amount varies) > occur at cumulating times, I would like to create a scatterplot > (easily achieved using plot etc) of these events (the events can > either be times u

[R] Scatterplot Question

2011-02-01 Thread Surrey Jackson
Hello, I have some data where a number of events (the total amount varies) occur at cumulating times, I would like to create a scatterplot (easily achieved using plot etc) of these events (the events can either be times using poxist or I can convert them into just seconds which is probably easier

Re: [R] scatterplot with filled circles

2010-11-16 Thread Dennis Murphy
Try adding pch = 16 to your plot call. HTH, Dennis On Tue, Nov 16, 2010 at 4:28 AM, DrCJones wrote: > > for a simple scatterplot: > > plot(X ~ Y, type = 'p', col = 'red') > > this produces red-edged circles, but I want to fill in the circles. > > can this be done? I checked '? plot' already but

Re: [R] scatterplot with filled circles

2010-11-16 Thread DrCJones
"Are you sure you want X~Y and not Y~X? " You are right of course - sorry that was just a typo ;) -- View this message in context: http://r.789695.n4.nabble.com/scatterplot-with-filled-circles-tp3044690p3044776.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] scatterplot with filled circles

2010-11-16 Thread DrCJones
Fantastic thanks! -- View this message in context: http://r.789695.n4.nabble.com/scatterplot-with-filled-circles-tp3044690p3044772.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/

Re: [R] scatterplot with filled circles

2010-11-16 Thread Ben Bolker
DrCJones gmail.com> writes: > for a simple scatterplot: > > plot(X ~ Y, type = 'p', col = 'red') > > this produces red-edged circles, but I want to fill in the circles. plot(X ~ Y, type = 'p', col = 'red', pch=16) Are you sure you want X~Y and not Y~X? _

Re: [R] scatterplot with filled circles

2010-11-16 Thread B.-Markus Schuller
Hey, the parameter in the plot command you are looking for is "pch". For filled circles type: > plot(X ~ Y, type = 'p', col = 'red', pch=16) The 16 determines the filled circles. Cheers, Mango - B.-Markus Schuller aka Mango Sensory Ecology Group Max-Pl

[R] scatterplot with filled circles

2010-11-16 Thread DrCJones
for a simple scatterplot: plot(X ~ Y, type = 'p', col = 'red') this produces red-edged circles, but I want to fill in the circles. can this be done? I checked '? plot' already but couldn't find what I was looking for. cheers -- View this message in context: http://r.789695.n4.nabble

Re: [R] Scatterplot matrix - Pearson linear correlation and Density Ellipse

2010-10-04 Thread ashz
Hi, strangely, when I run this script: panel.cor = function(x, y, digits=2, prefix="r=", cex.cor) { usr = par("usr"); on.exit(par(usr)) par(usr = c(0, 1, 0, 1)) r = abs(cor(x, y, use="pairwise.complete.obs", method = "pearson")) txt = format(c(r, 0.123456789), digits=digits)[1]

Re: [R] Scatterplot matrix - Pearson linear correlation and Density Ellipse

2010-10-04 Thread ashz
Thanks a lot for the answer -- View this message in context: http://r.789695.n4.nabble.com/Scatterplot-matrix-Pearson-linear-correlation-and-Density-Ellipse-tp2763552p2953909.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-pr

Re: [R] Scatterplot matrix - Pearson linear correlation and Density Ellipse

2010-10-03 Thread William Revelle
Dear ashz, Unfortunately, much of you want is not possible with the current implementation of pairs.panels. Since pairs.panels is adapted from the help file of pairs, you might try pairs and then add in the panel functions that do what you want. That the lm option does it what it does met a

Re: [R] Scatterplot matrix - Pearson linear correlation and Density Ellipse

2010-10-03 Thread ashz
Hi, I used the pairs.panels() in pkg:psych and it is helpful. It saves time. but if I use this line: pairs.panels(cfcap[8:11], scale = FALSE, lm=TRUE,ellipses=TRUE, digits = 2 ) The results are: - The upper.panel does not show the pearson r but the lm data. Furthermore, can I use the pairwise

Re: [R] scatterplot error message

2010-10-03 Thread David Winsemius
On Oct 3, 2010, at 1:58 PM, nisaf wrote: Hi All. I am a new R user. Trying to do scatterplot. Not sure how to resolve this error message A<-subset (ErablesGatineau, station=="A") B<-subset (ErablesGatineau, station=="B") plot(diam ~ biom) Did you also attache either (or both??? of those d

[R] scatterplot error message

2010-10-03 Thread nisaf
Hi All. I am a new R user. Trying to do scatterplot. Not sure how to resolve this error message A<-subset (ErablesGatineau, station=="A") > B<-subset (ErablesGatineau, station=="B") > > plot(diam ~ biom) > abline(lm(diam ~ biom), col = "red") > > goodcases <- !(is.na(diam) | is.na(bio

Re: [R] Scatterplot matrix - Pearson linear correlation and Density Ellipse

2010-10-01 Thread Peter Ehlers
On 2010-09-30 15:42, ashz wrote: Hi, I have modified a known script to generate a scatterplot matrix: panel.cor = function(x, y, digits=2, prefix="Rho=", cex.cor) { usr = par("usr"); on.exit(par(usr)) par(usr = c(0, 1, 0, 1)) r = abs(cor(x, y, use="pairwise.complete.obs", metho

[R] Scatterplot matrix - Pearson linear correlation and Density Ellipse

2010-09-30 Thread ashz
Hi, I have modified a known script to generate a scatterplot matrix: panel.cor = function(x, y, digits=2, prefix="Rho=", cex.cor) { usr = par("usr"); on.exit(par(usr)) par(usr = c(0, 1, 0, 1)) r = abs(cor(x, y, use="pairwise.complete.obs", method = "pearson")) txt = format(c(r,

Re: [R] scatterplot 3d equal axis sequence length limitation

2010-09-23 Thread Duncan Murdoch
On 23/09/2010 2:10 PM, rtist wrote: I was wondering if anyone has a way out of the limitation that you must use equal length x,y, and z sequence lengths. For instance, x<-seq(1,100) y<-seq(1,100) z<-rnorm(100) scatterplot3d(z,x,y) works fine. However, if I get some results that has a different

[R] scatterplot 3d equal axis sequence length limitation

2010-09-23 Thread rtist
I was wondering if anyone has a way out of the limitation that you must use equal length x,y, and z sequence lengths. For instance, x<-seq(1,100) y<-seq(1,100) z<-rnorm(100) scatterplot3d(z,x,y) works fine. However, if I get some results that has a different y subset length, such as x<-seq(1,10

Re: [R] Scatterplot question

2010-08-27 Thread Cuckovic Paik
Is this what you want? x=rnorm(10) y1=0.5*rnorm(10)+0.5*rexp(10) y2=0.5*rnorm(10)+0.5*runif(10) xlimit=range(x) ylimit=range(c(y1,y2)) plot(x,y1,pch="1",col=2,xlim=xlimit, ylim=ylimit, ylab="Y", xlab="X", cex=0.7) points(x,y2,pch="2", col=4,cex=0.7) -- View this message in context: http://r.7

Re: [R] Scatterplot question

2010-08-27 Thread David Winsemius
On Aug 27, 2010, at 2:16 PM, ashz wrote: Hi, I have two XY datasets (e.g., longitude and concentrations) who share the same X scale. How can I make a simple scatterplot which will combine them both with different colors for the two Y groups? (plot and xyplot solutions are fine with me

[R] Scatterplot question

2010-08-27 Thread ashz
Hi, I have two XY datasets (e.g., longitude and concentrations) who share the same X scale. How can I make a simple scatterplot which will combine them both with different colors for the two Y groups? (plot and xyplot solutions are fine with me). Thanks in advance. Cheers -- View this messa

Re: [R] Scatterplot - Overlap Frequency

2010-08-12 Thread Greg Snow
...@imail.org 801.408.8111 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Mestat > Sent: Thursday, August 12, 2010 2:20 PM > To: r-help@r-project.org > Subject: [R] Scatterplot - Overlap Frequency > >

Re: [R] Scatterplot - Overlap Frequency

2010-08-12 Thread Wu Gong
Hi Marcio, Your friend has given the answer. x <- rnorm(10) y <- rnorm(10) ind <- c(3,0,1,0,3,0,2,2,0,0) plot(x, y, col = grey(0:max(ind)/max(ind))[ind], pch = 16) Mestat wrote: > > I am working o a scatterplot where I would like to plot the variables > according with another frequency var

[R] Scatterplot - Overlap Frequency

2010-08-12 Thread Mestat
Hi listers... I am working o a scatterplot where I would like to plot the variables according with another frequency variable. Another friend here proposed this code... x <- rnorm(10) y <- rnorm(10) ind <- c(1,0,1,0,1,0,1,1,0,0) plot(x, y, col = ind + 1, pch = 16) # 1 is black, 2 is red But in

Re: [R] scatterplot function - double check: dashed lines

2010-06-09 Thread Jim Lemon
On 06/08/2010 08:44 PM, K F Pearce wrote: Hello everyone, This is just a quick double check. It concerns the 'scatterplot function' in R. I have 6 curves and I wish to represent each of them by a different kind of line (their colour must be black). The curves are derived from the cuminc fu

Re: [R] scatterplot function - double check: dashed lines

2010-06-08 Thread Greg Snow
2010 4:45 AM > To: r-help@r-project.org > Subject: [R] scatterplot function - double check: dashed lines > > Hello everyone, > > This is just a quick double check. It concerns the 'scatterplot > function' in R. > > I have 6 curves and I wish to represent each o

[R] scatterplot function - double check: dashed lines

2010-06-08 Thread K F Pearce
Hello everyone, This is just a quick double check. It concerns the 'scatterplot function' in R. I have 6 curves and I wish to represent each of them by a different kind of line (their colour must be black). The curves are derived from the cuminc function...the coordinates of which are in '

Re: [R] scatterplot in Package CAR

2010-02-11 Thread John Fox
Dear Ricardo, Yes, the least-squares line fit when reg.line=TRUE (the default) includes a constant. Regards, John John Fox Senator William McMaster Professor of Social Statistics Department of Sociology McMaster University Hamilton, Ontario, Canada web: socse

[R] scatterplot in Package CAR

2010-02-11 Thread Ricardo Gonçalves Silva
Hi Folks, Please, when I ask the option reg.line at the scatterplot in package car, the OLS models includes a constant? If not how can I do it sing the following code: scatterplot(lfirms ~ lscale, data=dataset, reg.line=lm, smooth=FALSE, labels=FALSE, span=0.5, xlab="Relative

Re: [R] scatterplot matrix with ggplot2

2010-01-09 Thread Ista Zahn
I don't think this approach will work. In your call to facet_grid you call variable twice. Another way to do this is create another variable, call it "variable2" and set it equal to variable. Now look at the dataframe. You have values for variable = x1, variable2 = x1, but no values for variable =

[R] scatterplot matrix with ggplot2

2010-01-09 Thread stephen sefick
#I would like to use the below data to make a scatter plot matrix with #code similar to that below the data #conceptually this is the right approach I think #thanks in advance melt.gg <- structure(list(stream = c("Bonham Lower", "Bonham Lower", "Bonham Lower", "Bonham Lower", "Bonham Lower", "Bonh

Re: [R] scatterplot matrix question

2010-01-02 Thread William Simpson
OK thanks David >> Thanks very much, Uwe. I will try this (on artificial data). I think >> reshape() requires a library [reshape?]. > > No. In fact, the reshape package does not have a reshape function. > > -- > > David Winsemius, MD > Heritage Laboratories > West Hartford, CT > > __

Re: [R] scatterplot matrix question

2010-01-02 Thread David Winsemius
On Jan 2, 2010, at 1:49 PM, William Simpson wrote: Now that we are able to help with some more detailed view of your data (although you could have helped helping by making it easier for us to import your data into R), the answer is: I am preparing for the data analysis, writing the code (k

Re: [R] scatterplot matrix question

2010-01-02 Thread William Simpson
> Now that we are able to help with some more detailed view of your data > (although you could have helped helping by making it easier for us to import > your data into R), the answer is: I am preparing for the data analysis, writing the code (knowing I may have to modify it later) while the data a

  1   2   >