Re: [R] scatter plot

2020-02-10 Thread John Kane
In line On Mon, 10 Feb 2020 at 15:12, Ana Marija wrote: > Hi, > > Thanks for getting back to me. I need to have there two groups: > > "nPDR.rg and "PDR.rg" > Your sample data only contains NoD.rg & nPDR.rg. To start with, I think we need some representative data supplied in dput format just

Re: [R] scatter plot

2020-02-10 Thread Rui Barradas
Hello, In the loop, try filtering out the values you do not want. Any of print(ggscatter(mds %>% dplyr::filter(cols != "NoD.rg"), etc)) print(ggscatter(subset(mds, cols != "NoD.rg"), etc)) tmp <- mds %>% filter(cols != "NoD.rg") print(ggscatter(tmp, etc)) The first two will create a

Re: [R] scatter plot

2020-02-10 Thread Ana Marija
Hi, Thanks for getting back to me. I need to have there two groups: "nPDR.rg and "PDR.rg" can you please let me know how my loop would look like just with those two groups? Thanks Ana On Mon, Feb 10, 2020 at 2:03 PM John Kane wrote: > > I must admit that I do not understand what you are

Re: [R] scatter plot

2020-02-10 Thread John Kane
I must admit that I do not understand what you are doing but can you notm just subset the data? Note I am using a data.frame not a tibble. It would be helpful if you could supply sample data in dput() forest. library("ggpubr") mds <- structure(list(Dim.1 = c(0.41, 0.184, 0.394, -0.49, 0.635,

[R] scatter plot

2020-02-10 Thread Ana Marija
Hello, I have a code like this: mds <- (ar_diff) %>% dist() %>% cmdscale(k=3) %>% as_tibble() mds$cols <- as.factor(c(rep("nPDR.rg",7), rep("PDR.rg",8), rep("NoD.rg",7))) pdf(file = "RG.pdf") for (dim1 in 1:2){ for (dim2 in (dim1+1):3){ d1 = paste0("Dim.",dim1); d2 =

Re: [R] scatter plot coloring problem

2018-07-20 Thread PIKAL Petr
Hi Values in conv_df are almost same for each Error level > aggregate(conv_df$Intercept, list(conv_df$Error), mean) Group.1 x 1 High CML error -3.226313 2 Low CML error -3.226536 3 Med CML error -3.226422 > aggregate(conv_df$Slope, list(conv_df$Error), mean) Group.1

Re: [R] scatter plot coloring problem

2018-07-20 Thread Micha Silver
On 07/20/2018 02:01 PM, Micha Silver wrote: On 07/20/2018 01:28 PM, Bert Gunter wrote: Nothing attached. The mail server strips most attachments for security. Here is a (slightly shorter) repex. The fourth plot shows the problem. The first three are as expected. library(ggplot2)

Re: [R] scatter plot coloring problem

2018-07-20 Thread Micha Silver
On 07/20/2018 01:28 PM, Bert Gunter wrote: Nothing attached. The mail server strips most attachments for security. Here is my repex, inline: library(ggplot2) conv_df <- structure(list(Adjustment = structure(c(1L, 2L, 3L, 4L, 5L, 1L,     2L, 3L, 4L, 5L,

Re: [R] scatter plot coloring problem

2018-07-20 Thread Bert Gunter
Nothing attached. The mail server strips most attachments for security. See the posting guide below and ?dput for how to include data. + We need your faulty code also, of course. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking

[R] scatter plot coloring problem

2018-07-20 Thread Micha Silver
Hello: I have two data frames (subsetted from a larger one). I am plotting scatterplots with ggplot2 and coloring by different variables. When using one of the variables "Error" with one of the dataframes "conv_df" only a single color is displayed. All the other variables show colors as

Re: [R] scatter plot of numerical variables against different sample ids

2016-12-05 Thread Shawn Way
R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Jim Lemon Sent: Monday, December 05, 2016 3:02 PM To: Maria Lathouri <mlatho...@yahoo.gr> Cc: R-help Mailing List <r-help@r-project.org> Subject: Re: [R] scatter plot of numerical variables against different sample ids Hi Maria, Pe

Re: [R] scatter plot of numerical variables against different sample ids

2016-12-05 Thread Jim Lemon
Hi Maria, Perhaps something like this: mldf<-read.table(text="Sample Cu Zn Mn M1 1 5 10 M2 2.5 11 8 M3 1.15 11 12 M4 2 4 30 M5 8 15 35", header=TRUE) matplot(mldf,type="b",pch=c("C","Z","M")) Jim On Mon, Dec 5, 2016 at 11:25 PM, Maria Lathouri via R-help

Re: [R] scatter plot of numerical variables against different sample ids

2016-12-05 Thread Ivan Calandra
Hi Maria, What happens is that R plots with boxplots (explaining the horizontal lines, i.e. boxes with n=1) when the x-variable is a factor. What you can do is transform your Sample column into numeric and then plot it, with some adjustment of axis labels. For example: datf <-

[R] scatter plot of numerical variables against different sample ids

2016-12-05 Thread Maria Lathouri via R-help
Dear all I know that my question is very simple but although I tried to find an answer online, I couldn't and I am stuck.  I have a dataset of three numerical variables measured in different samples ID. Something like this: Sample        Cu        Zn        MnM1               1          5        

[R] scatter plot matrix with multiple trend lines and p values

2015-02-28 Thread tianshu
I am trying to create a scatter plot matrix in which the lower panels contain scatter plots colored by group with trend lines by group, and the upper panels contain r and p values. Using pairs() I was able to get close (ie, scatter plot matrix on bottom with one trend line and correlation

Re: [R] Scatter plot for repeated measures

2014-12-08 Thread farnoosh sheikhi
Thank you all. That was very helpful.  Farnoosh On Saturday, December 6, 2014 7:41 PM, Chel Hee Lee chl...@mail.usask.ca wrote: It seems that you would like to make a spaghetti plot (in a longitudinal data analysis).  You can use the function 'interaction.plot()'. with(my.df,

Re: [R] Scatter plot for repeated measures

2014-12-06 Thread arun
Not sure whether it is a scatterplot or just a plot with 3 lines. If it is the latter, library(reshape2) matplot(acast(my.df, TIME~ID, value.var='X'), type='l', col=1:3, ylab='X', xlab='TIME') legend('bottomright', inset=.05, legend=LETTERS[1:3], pch=1, col=1:3) A.K. On Friday, December 5,

Re: [R] Scatter plot for repeated measures

2014-12-06 Thread Chel Hee Lee
It seems that you would like to make a spaghetti plot (in a longitudinal data analysis). You can use the function 'interaction.plot()'. with(my.df, interaction.plot(TIME, ID, X)) I hope this helps. Chel Hee Lee On 12/06/2014 02:24 AM, arun wrote: Not sure whether it is a scatterplot or

[R] Scatter plot selection points

2014-05-30 Thread Beatriz
Hi all, I'd like to do a scatterplot where some of the values, out of a subset, are plotted differently in color and shape. I've worked around the following code but I don't manage to make it right. Any help greatly appreciated! # My data dd - iris iris$Code - 1:150 # A selection of my data

Re: [R] Scatter plot selection points

2014-05-30 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Beatriz Sent: Friday, May 30, 2014 9:37 AM To: R Help Subject: [R] Scatter plot selection points Hi all, I'd like to do a scatterplot where some of the values, out

Re: [R] Scatter plot selection points

2014-05-30 Thread Beatriz
] On Behalf Of Beatriz Sent: Friday, May 30, 2014 9:37 AM To: R Help Subject: [R] Scatter plot selection points Hi all, I'd like to do a scatterplot where some of the values, out of a subset, are plotted differently in color and shape. I've worked around the following code but I don't manage to make

Re: [R] Scatter plot selection points

2014-05-30 Thread PIKAL Petr
Hi -Original Message- From: Beatriz [mailto:aguitatie...@hotmail.com] Sent: Friday, May 30, 2014 10:08 AM To: PIKAL Petr; R Help Subject: Re: [R] Scatter plot selection points Hi Ptr, Thanks for your email however, I cannot make the code work. Errors? What code you tried? iris

Re: [R] Scatter plot selection points

2014-05-30 Thread Beatriz
=ifelse(iris$Code %in% sel, 17, 1)) Cheers On 30/05/2014 17:38, PIKAL Petr wrote: Hi -Original Message- From: Beatriz [mailto:aguitatie...@hotmail.com] Sent: Friday, May 30, 2014 10:08 AM To: PIKAL Petr; R Help Subject: Re: [R] Scatter plot selection points Hi Ptr, Thanks for your

Re: [R] Scatter plot selection points

2014-05-30 Thread PIKAL Petr
Hi My code worked. Your code did not work because you was not aware that R distinguish case of letters :) -Original Message- From: Beatriz [mailto:aguitatie...@hotmail.com] Sent: Friday, May 30, 2014 12:21 PM To: PIKAL Petr; R Help Subject: Re: [R] Scatter plot selection points

[R] scatter plot to continuous plot

2014-02-24 Thread azam jaafari
Hello All I want to convert a scatter plot to a continuous contour plot. I have x as a variable and y as another variable. is there any package for this? can anybody halp me? Thanks On Sun, 2/23/14, r-help-requ...@r-project.org

[R] scatter plot to contour plot

2014-02-24 Thread azam jaafari
Dear All I want to convert a scatter plot to a continuous contour plot. I have x as a variable and y as another variable. is there any package for this? can anybody halp me? Thanks Azam [[alternative HTML version deleted]] __

Re: [R] scatter plot to contour plot

2014-02-24 Thread Duncan Murdoch
On 24/02/2014 12:45 PM, azam jaafari wrote: Dear All I want to convert a scatter plot to a continuous contour plot. I have x as a variable and y as another variable. is there any package for this? can anybody halp me? A contour plot of values associated with the points, or a contour plot of

Re: [R] scatter plot to contour plot

2014-02-24 Thread Clint Bowman
Azam, If you also have z ~ f(x,y) you can produce contours. Otherwise, you could look at package hexbin. Clint Clint BowmanINTERNET: cl...@ecy.wa.gov Air Quality Modeler INTERNET: cl...@math.utah.edu Department of Ecology VOICE:

Re: [R] scatter plot to contour plot

2014-02-24 Thread MacQueen, Don
In addition to the other responses, I'd like to suggest: help.search('contour', package='graphics') Since the graphics package comes with R, you don't necessarily need any additional package for contouring. But you will need the akima package for interpolation. Assuming you're doing a contour

Re: [R] Scatter plot with error bars

2013-06-28 Thread Blaser Nello
-project.org] On Behalf Of beginner Sent: Freitag, 28. Juni 2013 02:24 To: r-help@r-project.org Subject: [R] Scatter plot with error bars Hi I would like to plot multiple data sets on a scatter plot with error bars. To do this I write the following code: install.packages(Hmisc) library(Hmisc) x1

Re: [R] Scatter plot with error bars

2013-06-28 Thread beginner
Thank you very much for your help ! -- View this message in context: http://r.789695.n4.nabble.com/Scatter-plot-with-error-bars-tp4670502p4670530.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

[R] Scatter plot with error bars

2013-06-27 Thread beginner
Hi I would like to plot multiple data sets on a scatter plot with error bars. To do this I write the following code: install.packages(Hmisc) library(Hmisc) x1-data1[,1] y1-data1[,2] x2-data2[,1] y2-data2[,2] x3-data3[,1] y3-data3[,2] SD1-data1[,3] SD2-data2[,3] SD3-data3[,4] delta-runif(5)

Re: [R] scatter plot matrix with different x-y variables

2013-05-13 Thread adel daoud
Greg, the pairs2 function was exactly what I wanted. Thanks for a very useful function. May I ask a follow up question, is it possible to draw a correlation line with R2 values for each graph – on each graph, or on the side of the graph. I am sure this is possible somehow, but I am new to R

Re: [R] scatter plot matrix with different x-y variables

2013-05-11 Thread Greg Snow
The pairs2 function in the TeachingDemos package does what you describe. You give it 2 matricies instead of just one and it creates the plots. On Wed, May 8, 2013 at 10:49 AM, Adel adelda...@gmail.com wrote: Dear list-members, I wonder if there is a way of creating a scatter plot table/grid

[R] scatter plot matrix with different x-y variables

2013-05-08 Thread Adel
Dear list-members, I wonder if there is a way of creating a scatter plot table/grid with different variables on the y-axis compared to the x-axis? Something like this: A*** B*** C*** -XYZ I know that you can create scatter plot matrix with the same variables on the y-axis as on the x-axis,

Re: [R] scatter plot matrix with different x-y variables

2013-05-08 Thread John Kane
to install the ggplot2 and gridExtra packages. See ?install.packages for help John Kane Kingston ON Canada -Original Message- From: adelda...@gmail.com Sent: Wed, 8 May 2013 09:49:25 -0700 (PDT) To: r-help@r-project.org Subject: [R] scatter plot matrix with different x-y variables

Re: [R] Scatter plot from tapply output, labels of data

2012-09-04 Thread Jean V Adams
Try this: # I created some example data mydf - data.frame( Species=sample(paste0(Species, 1:3), 50, TRUE), d13C=15+rnorm(50), d15N=15+rnorm(50), Year=sample(2009:2012, 50, TRUE)) attach(mydf) Nmean - tapply(d15N, list(Year,Species), mean) Cmean - tapply(d13C,

[R] Scatter plot from tapply output, labels of data

2012-09-03 Thread monaR
Hei, i am trying to plot the means of two variables (d13C and d15N), by 2 grouping factors (Species and Year) that i obtained by the function tapply. I would like to plot with different colours according to the Year and show the Species as data labels. My data looks like this: Species

Re: [R] Scatter plot / LOESS, or LOWESS for more than one parameter

2012-04-30 Thread David Doyle
First let me say thank you for all the help everyone gave me. Below is the code I came up with to look at Rainfall pH reading for Kentucky and Tennessee. Also there is a more *generic* ver of the code on my web page if anybody ever needs it in the future.

Re: [R] Scatter plot / LOESS, or LOWESS for more than one parameter

2012-04-25 Thread Greg Snow
You can also use range( MC.pH, MV.pH, na.rm=TRUE). On Tue, Apr 24, 2012 at 1:29 PM, David Doyle kydaviddo...@gmail.com wrote: Hi Greg, Sloved my own problem. I had some missing data NA in the datasets.  So I manually entered the ylim=range(4,6) and it worked!!! Thanks!! David On Tue,

Re: [R] Scatter plot / LOESS, or LOWESS for more than one parameter

2012-04-24 Thread Greg Snow
Assuming that you want event as the x-axis (horizontal) you can do something like (untested without reproducible data): par(mfrow=c(2,1)) scatter.smooth( event, pH1 ) scatter.smooth( event, pH2 ) or plot( event, pH1, ylim=range(pH1,pH2) , col='blue') points( event, pH2, col='green' ) lines(

Re: [R] Scatter plot / LOESS, or LOWESS for more than one parameter

2012-04-24 Thread David Doyle
Hi Michael, What I run into is that I have a lot of time-series data from groundwater wells but when plot it..it becomes way to busy to see what is going on. For example, here is the code to load and plot my Mammoth Cave rainfall pH data #Load data from web page data -

Re: [R] Scatter plot / LOESS, or LOWESS for more than one parameter

2012-04-24 Thread David Doyle
Hi Greg, Thanks, I got the 1st example to work using the following code: data - read.csv(http://doylesdartden.com/Monthly-pH-example.csv;, sep=,) attach(data) par(mfrow=c(2,1)) scatter.smooth( Year, MC.pH ) scatter.smooth( Year, MV.pH ) This is good but what I'm really looking for is to

Re: [R] Scatter plot / LOESS, or LOWESS for more than one parameter

2012-04-24 Thread David Doyle
Hi Greg, Sloved my own problem. I had some missing data NA in the datasets. So I manually entered the ylim=range(4,6) and it worked!!! Thanks!! David On Tue, Apr 24, 2012 at 1:55 PM, David Doyle kydaviddo...@gmail.com wrote: Hi Greg, Thanks, I got the 1st example to work using the

[R] Scatter plot / LOESS, or LOWESS for more than one parameter

2012-04-23 Thread David Doyle
Hi folks. If I have the following in my data eventpH1pH2 14.0 6.0 24.3 5.9 34.1 6.1 44.0 5.9 and on and on. for about 400 events Is there a way I can get R to plot event vs. pH1 and event vs. pH2 and then do a loess or

Re: [R] Scatter plot / LOESS, or LOWESS for more than one parameter

2012-04-23 Thread R. Michael Weylandt
The scatter plot is easy: plot(pH1 ~ pH2, data = OBJ) When you say a loess for each -- how do you break them up? Are there repeat values for pH1? If so, this might be hard to do in base graphics, but ggplot2 would make it easy: library(ggplot2) ggplot(OBJ, aes(x = pH1, y = pH2)) + geom_point()

Re: [R] Scatter plot - using colour to group points?

2011-11-23 Thread Ian Robertson
Hello all, Yesterday I wrote Michael Weylandt to ask for some help in understanding a line of code he used responding to SarahH's query about controlling colours in scatter plots. He wrote an excellent explanation that deserves to be shared here. Below I include the code I wrote while

Re: [R] Scatter plot - using colour to group points?

2011-11-22 Thread SarahH
Thanks all for suggestions. I now have a nice plot showing the temperature of 6 different sites, each site distinguished by different coloured points, using nested ifelse. My apologies I thought I could change the type to l and the same arguments would be applied to line graph, with 6 different

Re: [R] Scatter plot - using colour to group points?

2011-11-22 Thread R. Michael Weylandt michael.weyla...@gmail.com
There's also the lines() command which takes a col argument if you want to do multiple lines (I usually wind up wrapping it in a for loop though there might be something smarter) ggplot2 is great, though the learning curve is a little rough: you can get good help here but if you go down that

Re: [R] Scatter plot - using colour to group points?

2011-11-22 Thread SarahH
Success with the lines command and col argument! I have some nice point and line plots. Thanks so much for you help. Ongoing project - I will probably be back! Sarah -- View this message in context: http://r.789695.n4.nabble.com/Scatter-plot-using-colour-to-group-points-tp4092794p4097625.html

[R] Scatter plot - using colour to group points?

2011-11-21 Thread SarahH
Dear All, I am very new to R - trying to teach myself it for some MSc coursework. I am plotting temperature data for two different sites over the same time period which I have downloaded from a university weather station data archive. I am using the following code to create the plot plot (

Re: [R] Scatter plot - using colour to group points?

2011-11-21 Thread David Winsemius
On Nov 21, 2011, at 2:17 PM, SarahH wrote: Dear All, I am very new to R - trying to teach myself it for some MSc coursework. I am plotting temperature data for two different sites over the same time period which I have downloaded from a university weather station data archive. I am

Re: [R] Scatter plot - using colour to group points?

2011-11-21 Thread R. Michael Weylandt
I think the easiest way to do this is to set up a color vector with ifelse and hand that off to the plot command: something like col = ifelse(TEMP3[,SITE] == BG1, blue, green) # Syntax is ifelse(TEST, OUT_IF_TRUE, OUT_IF_FALSE) For more complicated schemes, a set of nested ifelse()'s can get you

Re: [R] Scatter plot - using colour to group points?

2011-11-21 Thread SarahH
I got the colour vector with ifelse to work, great! Thank you. Is it possible to use the ifelse colour vector with other plot types? For example with type=l ? I tried but the graphic came back with blue lines for both sites and also a straight line connecting the start and end point of the data?

Re: [R] Scatter plot - using colour to group points?

2011-11-21 Thread John Kane
: [R] Scatter plot - using colour to group points? To: r-help@r-project.org Received: Monday, November 21, 2011, 2:17 PM Dear All, I am very new to R - trying to teach myself it for some MSc coursework. I am plotting temperature data for two different sites over the same time period which

Re: [R] Scatter plot - using colour to group points?

2011-11-21 Thread R. Michael Weylandt
I don't think you can do different colors for a single line (not an ifelse thing, just a what would that mean sort of thing), but a plot type like b o or h will work the same way. Michael On Mon, Nov 21, 2011 at 4:23 PM, SarahH sarah@hotmail.co.uk wrote: I got the colour vector with ifelse

Re: [R] Scatter plot - using colour to group points?

2011-11-21 Thread David Winsemius
On Nov 21, 2011, at 10:18 PM, R. Michael Weylandt wrote: I don't think you can do different colors for a single line (not an ifelse thing, just a what would that mean sort of thing), but a plot type like b o or h will work the same way. I think Jim Lemon has a multicolored line function in

Re: [R] Scatter plot - using colour to group points?

2011-11-21 Thread Jim Lemon
On 11/22/2011 05:00 PM, David Winsemius wrote: On Nov 21, 2011, at 10:18 PM, R. Michael Weylandt wrote: I don't think you can do different colors for a single line (not an ifelse thing, just a what would that mean sort of thing), but a plot type like b o or h will work the same way. I think

[R] Scatter Plot Command Syntax Using Data.Frame Source

2011-08-31 Thread Rich Shepard
I've tried various commands. ?plot, Teetor's book, R Cookbook, and Mittal's book, R Graphs Cookbook without seeing how to write the command to create scatterplots from my data.frame. The structure is: str(chemdata) 'data.frame': 14886 obs. of 4 variables: $ site: Factor w/ 148 levels

Re: [R] Scatter Plot Command Syntax Using Data.Frame Source

2011-08-31 Thread baptiste auguie
Hi, Below are a couple of options using a standard dataset, str(iris) ## using base graphics d - split(iris, iris$Species) str(d) # list of 3 data.frames par(mfrow=n2mfrow(length(d))) # split the device in 3 plotting regions b.quiet - lapply(names(d), function(x) { # loop over the list names

Re: [R] Scatter Plot Command Syntax Using Data.Frame Source

2011-08-31 Thread Rich Shepard
On Thu, 1 Sep 2011, baptiste auguie wrote: Below are a couple of options using a standard dataset, Thanks, Baptiste. These point me in the right direction. Rich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Scatter Plot Command Syntax Using Data.Frame Source

2011-08-31 Thread Jorge I Velez
Hi Rich, Using the data set iris as an example, you might also try require(car) scatterplot(Petal.Length ~ Sepal.Length | Species, data = iris) HTH, Jorge On Wed, Aug 31, 2011 at 4:50 PM, Rich Shepard wrote: I've tried various commands. ?plot, Teetor's book, R Cookbook, and Mittal's

[R] Scatter plot in R

2011-08-05 Thread Abder-Rahman Ali
Hi, I have 334 records, with two columns: Column (1): Resolution Column (2): Number of images with a specific resolution How can I make a scatter plot in R with this data? Is there a way to *import * the records, since it will be time consuming to enter 334 records? Thanks.

Re: [R] Scatter plot in R

2011-08-05 Thread Jannis
This is a really basic question that is answered in many R tutorials. Why dont you just google: R import csv And the first hit will tell you straight away what to do? Jannis P.S. I just guessed from your not very specific post that you may want to import from csv ... On 08/05/2011 12:45

Re: [R] Scatter plot produces 'x' and 'y' lengths differ

2011-06-17 Thread Daniel Malter
It likely means that your x and y are differently long. That is, affect1 and adh1scr do not contain the same number of values in that instance. That precludes them from being plotted against each other. abline and lowess would fail for the same reason. x-c(1,2,3) y-c(2,4) plot(y~x)

[R] Scatter plot produces 'x' and 'y' lengths differ

2011-06-16 Thread Alspach, Steven E.
Hello, I am working on a project to create some scatter plots. I have syntax for 26 plots, and 22 of them display as they should. But here, for example, is a sample of the command syntax I am using: good - complete.cases(affect1,adh1scr) plot

[R] scatter plot: multiple Y variables and error bars

2011-05-18 Thread B77S
#Hi all, #Using the example data that follows, can someone please show me how to get a scatterplot of points with #error bars in the Y direction. something like this works for one Y: xYplot(Cbind(y1, l1, u1) ~x1, data=y) #but this: xYplot(Cbind(y1, l1, u1) + Cbind(y2, l2, u2)~x1, data=y) #

[R] scatter plot with Z value

2011-05-04 Thread Matevž Pavlič
Hi all, I would like to create a scatter plot of two variables (y, x) whith third value (z) written on the plot? After that i would like to add a line (Y=0.7*(x-20)) to the graph. I tried plot(x~y) but there is no command for the third vairable to be shown on the graph also i

Re: [R] scatter plot with Z value

2011-05-04 Thread Jannis
-zrmk.si schrieb am Mi, 4.5.2011: Von: Matevž Pavlič matevz.pav...@gi-zrmk.si Betreff: [R] scatter plot with Z value An: r-help@r-project.org Datum: Mittwoch, 4. Mai, 2011 12:55 Uhr Hi all, I would like to create a scatter plot of two variables (y, x)  whith third value (z) written

[R] Scatter plot with multiple data sets

2011-03-03 Thread Jorseff
Hi, I have multiple (6) data sets which I would like to plot together on one scatter graph. The reason they are all separate is that I require a different symbol to be plotted for each set. Could somebody advise on how to do this? Many thanks, Joe -- View this message in context:

Re: [R] Scatter plot with multiple data sets

2011-03-03 Thread Joshua Wiley
Hi Joe, The easiest option will be to combine all 6 datasets (at least the variables you want to use in your scatter plot), and then create another variable that indicates to which group the observations belong. Here is a small example of what you might do once your data are all together

Re: [R] Scatter plot with margin distributions

2009-11-25 Thread Jose Narillos de Santos
Finally I get a plot manual...so I got the solution Sorry about inconveniences 2009/11/24, Jose Narillos de Santos narillosdesan...@gmail.com: Hi All, My doub I think is very simple. I hope it is. So you can again help, guide me. I´m trying to make a graph (scatter graph) about

[R] Scatter plot with margin distributions

2009-11-24 Thread Jose Narillos de Santos
Hi All, My doub I think is very simple. I hope it is. So you can again help, guide me. I´m trying to make a graph (scatter graph) about two variables, imagine I have a watter.txt file with two variables watter and hardness: This code extracted from:

[R] scatter plot equation

2009-11-22 Thread Rofizah Mohammad
Hi, If I have 2D data set say (x,y) and I can do scatter plot by using plot(x,y) command. How can I add in this scatter plot the equations curve say 2X2 + 3Y2 – 6X – 7Y + 9 = 0. Regards Rofizah [[alternative HTML version deleted]] __

Re: [R] scatter plot equation

2009-11-22 Thread Duncan Murdoch
On 22/11/2009 11:27 AM, Rofizah Mohammad wrote: Hi, If I have 2D data set say (x,y) and I can do scatter plot by using plot(x,y) command. How can I add in this scatter plot the equations curve say 2X2 + 3Y2 – 6X – 7Y + 9 = 0. You could do it using contour(), but you should use an equation

Re: [R] scatter plot equation

2009-11-22 Thread David Winsemius
On Nov 22, 2009, at 11:27 AM, Rofizah Mohammad wrote: Hi, If I have 2D data set say (x,y) and I can do scatter plot by using plot(x,y) command. How can I add in this scatter plot the equations curve say 2X2 + 3Y2 – 6X – 7Y + 9 = 0. No executable example... so if you are too lazy to

Re: [R] scatter plot equation

2009-11-22 Thread Rofizah Mohammad
Many thanks Duncan. I got the plot even I don't really understand the whole command.. I will study that later.. :-) Regards On Sun, Nov 22, 2009 at 4:44 PM, Duncan Murdoch murd...@stats.uwo.cawrote: On 22/11/2009 11:27 AM, Rofizah Mohammad wrote: Hi, If I have 2D data set say (x,y) and

[R] Scatter plot using icons (from a gif) instaed of points - is it possible ?

2009-10-14 Thread Tal Galili
Hello dear R-help group. I wish to plot a scatter plot using icons (or images) instead of points. Is it possible? and how so? Thanks, Tal -- My contact information: Tal Galili E-mail: tal.gal...@gmail.com Phone number: 972-52-7275845 FaceBook:

Re: [R] Scatter plot using icons (from a gif) instaed of points - is it possible ?

2009-10-14 Thread baptiste auguie
Hi, You'll probably find that there are two parts to your query: 1- import a bitmap into R, for this I'd suggest the wiki page, http://wiki.r-project.org/rwiki/doku.php?id=tips:graphics-misc:display-images 2- place the image (now some sort of matrix of colour points) at different locations on a

Re: [R] Scatter plot using icons (from a gif) instaed of points - is it possible ?

2009-10-14 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 Tal Galili Sent: Wednesday, October 14, 2009 12:13 PM To: r-help@r-project.org Subject: [R] Scatter plot using icons (from a gif) instaed of points

Re: [R] Scatter Plot

2009-07-31 Thread baptiste auguie
please Cc. the list next time Two suggestions, 1) read the help page, e.g. ?points would have told you why pch=10 produces 1. 2) Try the following and see which you prefer, x = y = labels = 1:20 ?text plot(x, y, type='n') # empty plot text(x, y, paste(labels)) library(ggplot2) ?qplot

[R] Scatter Plot

2009-07-30 Thread amna khan
Dear Sir I want to write the numbers 1,2,3,on a scatter plot instead of points, like 1 corresponding to first point on plot, 2 corresponding second point etc. Help in this regard. Regards -- AMINA SHAHZADI Department of Statistics GC University Lahore, Pakistan. [[alternative HTML

Re: [R] Scatter Plot

2009-07-30 Thread baptiste auguie
Hi, Try this, plot(1:5,1:5, t='p', pch=paste(1:5)) baptiste 2009/7/30 amna khan amnakhan...@gmail.com: Dear Sir I want to write the numbers 1,2,3,on a scatter plot instead of points, like 1 corresponding to first point on plot, 2 corresponding second point etc. Help in this regard.

Re: [R] Scatter Plot

2009-07-30 Thread Felipe Carrillo
: amna khan amnakhan...@gmail.com Subject: [R] Scatter Plot To: r-help@r-project.org Date: Thursday, July 30, 2009, 9:14 AM Dear Sir I want to write the numbers 1,2,3,on a scatter plot instead of points, like 1 corresponding to first point on plot, 2 corresponding second point etc. Help

Re: [R] Scatter Plot

2009-07-30 Thread John Kane
x - 1:10 y - 1:10 plot(, xlim=c(1,10),ylim=c(0,10) text(x,y, labels=x) --- On Thu, 7/30/09, amna khan amnakhan...@gmail.com wrote: From: amna khan amnakhan...@gmail.com Subject: [R] Scatter Plot To: r-help@r-project.org Received: Thursday, July 30, 2009, 12:14 PM Dear Sir I want

[R] Scatter plot

2009-04-01 Thread Sueli Rodrigues
Hi. How do I plot the straight line and r² in a scatter plot using a simple file x~y? Sueli Rodrigues Eng. Agrônoma - UNESP Mestranda - USP/ESALQ PPG-Solos e Nutrição de Plantas Fones (19)93442981 (19)33719762 __ R-help@r-project.org mailing

Re: [R] Scatter plot

2009-04-01 Thread Peter Alspach
Tena koe Sueli ?abline ?text HTH ... Peter Alspach -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Sueli Rodrigues Sent: Thursday, 2 April 2009 2:35 p.m. To: r-help@r-project.org Subject: [R] Scatter plot Hi. How do

Re: [R] Scatter plot

2009-04-01 Thread stephen sefick
Sueli ?abline ?text HTH ... Peter Alspach -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Sueli Rodrigues Sent: Thursday, 2 April 2009 2:35 p.m. To: r-help@r-project.org Subject: [R] Scatter plot Hi. How do I plot

Re: [R] Scatter plot

2009-04-01 Thread markleeds
-boun...@r-project.org] On Behalf Of Sueli Rodrigues Sent: Thursday, 2 April 2009 2:35 p.m. To: [4]r-h...@r-project.org Subject: [R] Scatter plot Hi. How do I plot the straight line and r² in a scatter plot using a simple file x~y? Sueli Rodrigues

Re: [R] scatter plot question

2009-03-04 Thread Marc Vinyes
plot(x,rho,pch=id) -Mensaje original- De: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]en nombre de Dipankar Basu Enviado el: 03 March 2009 20:11 Para: r-help@r-project.org Asunto: [R] scatter plot question Hi R Users, I have a dataframe like this: id x rho

Re: [R] scatter plot question

2009-03-04 Thread Tim Cavileer
At 12:19 AM 3/4/2009, you wrote: plot(x,rho,pch=id) Or this. Tim dat id x rho 1 A 1 0.1 2 B 20 0.5 3 C 2 0.9 labels-dat$id labels [1] A B C plot(dat$x,dat$rho,pch=labels) __ R-help@r-project.org mailing list

[R] scatter plot question

2009-03-03 Thread Dipankar Basu
Hi R Users, I have a dataframe like this: id x rho A 1 0.1 B 20 0.5 C 2 0.9 ... I want to do a scatter plot of x versus rho but for each point on the scatter plot I want the corresponding entry for id instead of points. In STATA I can do so by twoway (scatter x rho, mlabel(id)) How

Re: [R] scatter plot question

2009-03-03 Thread Mark Lyman
Dipankar Basu basu.15 at gmail.com writes: Hi R Users, I have a dataframe like this: id x rho A 1 0.1 B 20 0.5 C 2 0.9 ... I want to do a scatter plot of x versus rho but for each point on the scatter plot I want the corresponding entry for id instead of points. test

[R] scatter plot using ggplot

2008-07-22 Thread Megh Dal
I used ggplot to create a scatter plot : library(ggplot) library(mnormt) Sigma = matrix(c(1, 0.6, 0.6, 1), 2, 2) x = rmnorm(20, c(0,0), Sigma) xx = x[order(x[,1]),] y = xx[,1] z = xx[,2] qplot(z, y, type=point, main=x-y plot, xlab=x, col=blue) However I want following: 1. Plot color must be

Re: [R] scatter plot using ggplot

2008-07-22 Thread hadley wickham
On Tue, Jul 22, 2008 at 3:42 AM, Megh Dal [EMAIL PROTECTED] wrote: I used ggplot to create a scatter plot : library(ggplot) library(mnormt) Sigma = matrix(c(1, 0.6, 0.6, 1), 2, 2) x = rmnorm(20, c(0,0), Sigma) xx = x[order(x[,1]),] y = xx[,1] z = xx[,2] qplot(z, y, type=point, main=x-y

Re: [R] Scatter plot transparency

2008-06-21 Thread Prof Brian Ripley
Please see the footer of this message. What do you want to be transparent, and what did you use to try to get it (there are many possibilities)? What OS and version of R is this? Note that the default value of bg for the png() and tiff() devices is white, and the Windows version of the

Re: [R] Scatter plot transparency

2008-06-21 Thread Anh Tran
Thanks, I think I've got it on Mac. Will try with my windows station tomorrow. Best, Anh Tran On Jun 21, 2008, at 12:05 AM, Prof Brian Ripley wrote: Please see the footer of this message. What do you want to be transparent, and what did you use to try to get it (there are many

[R] Scatter plot transparency

2008-06-20 Thread Anh Tran
Hi all, I'm putting a few plots together and wondering what format would be best to export a few scatter plots to Illustrator to make a figure. I'm thinking about overlaying some plot in Illustrator, so the export file type has to be transparent for Illustrator (version 10). I tried PNG and TIFF,

Re: [R] Scatter plot transparency

2008-06-20 Thread milton ruser
Hi Anh, I don´t know if I understood your point fine. I generate a scatterplot, and open it on adobe photoshop 7.0 with tranparent background. setwd(c:\\temp) x-runif(100) y-rnorm(100) png(transparent_scatterplot.png, 800, 600, bg=transparent) plot(y~x) dev.off() I hope this help, miltinho

[R] Scatter Plot - 3 vectors side by side

2008-05-06 Thread A Ezhil
Hi, I have 3 vectors, x=rnorm(10); y=rnorm(20); z=rnorm(30). I would like to plot 3 vectors side by side (like a bar plot) with scatter plot something similar to the following: .. *** ;;; .. ** ;;; .. *** ;;; .. *** ;;; ... *** ;; x y z How can I do this with Plot()?

  1   2   >