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
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 tempora
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 doin
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, -0
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 = paste0("Dim.",dim2
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
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)
strat_d
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, 1
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 thing
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
expec
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
Cc: R-help Mailing List
Subject: Re: [R] scatter plot of numerical variables against different sample
ids
Hi Maria,
Perhaps something like this:
mldf<-read.table(text=
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
wrote:
> Dear al
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 <- data.frame(Samp
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
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
coefficie
Thank you all. That was very helpful. Farnoosh
On Saturday, December 6, 2014 7:41 PM, Chel Hee Lee
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, interaction.plot(TIME
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
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,
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
(iris$Code %in% sel, "red", "black"),
pch=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:
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 w
ct.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 of a subset,
are plotted differently in color and shape.
I've worked around the following code but I don
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 s
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
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 p
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: (3
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
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]]
__
R-help@r-
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
wrote:
Sub
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
https
-boun...@r-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&
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<-
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
program
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 wrote:
> Dear list-members,
>
> I wonder if there is a way of creating a scatter plot table/grid with
> different
q)
###
I imagine that you will need 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
> Subj
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, lik
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
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 d
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.
http://sites.google.com/site/davidsstatis
You can also use range( MC.pH, MV.pH, na.rm=TRUE).
On Tue, Apr 24, 2012 at 1:29 PM, David Doyle 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, Apr 24,
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 wrote:
> Hi Greg,
>
> Thanks,
>
> I got the 1st example to work using the following code:
>
>
>
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 t
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 <- read.csv("http://doylesda
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( loes
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() +
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 o
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
experim
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
S
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 pa
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
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
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
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 wrote:
> I got the colour vector with ifelse to work, great! T
<- ggplot(mydata, aes(x=time1)) +
geom_point(aes(y= t1, colour= site)) +
geom_point(aes(y = t2, colour=site))
p <- p + scale_x_continuous('Time')+
scale_y_continuous('Temperature')
p
========
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?
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
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 usi
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 ( x
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
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
PLE
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
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 lev
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
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.
[[alternati
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)
complete.case
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
(jitter(affect1,2.0),jitter(adh1scr,1.0),xli
#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)
#
, 4.5.2011:
> Von: Matevž Pavlič
> 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 on the p
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 ca
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 (obvious
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:
http://r.78969
Finally I get a plot manual...so I got the solution
Sorry about inconveniences
2009/11/24, 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, imagin
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:
http://cran.r-project.org/web/packages/HSAUR/v
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 wrote:
> On 22/11/2009 11:27 AM, Rofizah Mohammad wrote:
>
>> Hi,
>>
>> If I have 2D data set say (x,y) and I can do sca
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 cons
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 tha
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]]
__
R-help@
...@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
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
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: T
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
qplo
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 wrote:
> From: amna khan
> Subject: [R] Scatter Plot
> To: r-help@r-project.org
> Received: Thursday, July 30, 2009, 12:14 PM
> Dear Sir
>
> I wan
t; 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
Hi,
Try this,
plot(1:5,1:5, t='p', pch=paste(1:5))
baptiste
2009/7/30 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
>
>
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
ine
> ?text
>
> HTH ...
>
> Peter Alspach
>
>> -Original Message-
>> From: [2]r-help-boun...@r-project.org
>> [mailto:[3]r-help-boun...@r-project.org] On Behalf Of Sueli Rodrigues
>> Sent: Thursday, 2 April 20
Wed, Apr 1, 2009 at 9:41 PM, Peter Alspach
wrote:
> 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
&g
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] Scatt
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 lis
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
https://stat.ethz
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
A
Dipankar Basu 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 point
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))
hadley wickham
CC: [EMAIL PROTECTED]
Onderwerp: Re: [R] scatter plot using ggplot
Thanks for this mail. However I am getting following error on that :
Error in inherits(formula, "formula") : could not find function "aes"
And regarding my 3rd query I actually wanted to get &q
--- On Tue, 7/22/08, hadley wickham <[EMAIL PROTECTED]> wrote:
> From: hadley wickham <[EMAIL PROTECTED]>
> Subject: Re: [R] scatter plot using ggplot
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Date: Tuesday, July 22, 2008, 10:00 PM
> On Tue, Jul 22, 2008
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
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
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
possibil
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 t
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,
mil
1 - 100 of 108 matches
Mail list logo