[R] interaction plot and x axis

2012-01-04 Thread Lathouri, Maria
Dear all I am trying to make an interaction plot among 6 variables; e.g. PH to be in the x axis and the rest 5 variables in the y axis. The code that I am using is the below: The name of my file is e.g. spec so spec-read.csv(spec.csv) head (spec) str(spec) names-names(spec)[2:6]

[R] fitting a distribution to a ecdf plot

2011-03-15 Thread Lathouri, Maria
Dear all, I need to plot an cumulative distribution plot of a variable and then to fit a distribution to that, probably a weibull or lognormal. I have plotted the ecdf as plot(ecdf(x)) but I haven't managed to fit the distribution. I have as well attached the data. I would appreciate if you

Re: [R] fitting a distribution to a ecdf plot

2011-03-15 Thread Lathouri, Maria
To: Lathouri, Maria Cc: r-help@r-project.org Subject: Re: [R] fitting a distribution to a ecdf plot On Mar 15, 2011, at 12:00 PM, Lathouri, Maria wrote: Dear all, I need to plot an cumulative distribution plot of a variable and then to fit a distribution to that, probably a weibull

Re: [R] fitting a distribution to a ecdf plot

2011-03-15 Thread Lathouri, Maria
Hallo yes I tried it as well and it works; Thank you a lot Maria From: Dennis Murphy [djmu...@gmail.com] Sent: 15 March 2011 21:36 To: Lathouri, Maria Cc: r-help@r-project.org Subject: Re: [R] fitting a distribution to a ecdf plot Hi: The fitdistrplus package

[R] how to change the margins of a plot area

2011-03-13 Thread Lathouri, Maria
Dear all, I am ploting two boxplot of two chemical variables using the format boxplot(Alkalinity, logAlkalinity, log=y, col=c(lightblue), lwd=0.6, boxwex=0.3) However when I plot like this, the distance between the two boxplots is very big and as well the distance of each boxplot from the plot

Re: [R] how to change the margins of a plot area

2011-03-13 Thread Lathouri, Maria
] Sent: 13 March 2011 13:19 To: r-help@r-project.org; Lathouri, Maria Subject: Re: [R] how to change the margins of a plot area Hi Maria, I think we need some sample data and code to really be ablo to help. in the meantime have have a look at ?par for general plotting info. --- On Sun, 3/13/11

[R] FW: how to change the margins of a plot area

2011-03-13 Thread Lathouri, Maria
2011 18:24 To: Lathouri, Maria Subject: Re: [R] how to change the margins of a plot area Please read the Posting Guide and note that .csv files are NOT mentioned as one of the acceptable formats for attachments to postings! On Mar 13, 2011, at 1:00 PM, Lathouri, Maria wrote: Dear all I have

[R] please help with interaction.plot

2011-03-02 Thread Lathouri, Maria
Dear all I have the following code to produce a graph of 5 different variables in the same graph; however when I follow it in the end it produces the plot of the 5 variables and a legend in right but the problem is that the legend is too close to the margin of the plot and when I try to write

[R] barplot with errorbars

2011-02-17 Thread Lathouri, Maria
Dear all I have six variables of the average metal concentrations Var1 4.77 Var2 23.5 Var3 5.2 Var4 12.3 Var5 42.1 Var6 121.2 I want to plot them as a barplot with error bars. Could you help me? Cheers Maria [[alternative HTML version deleted]]

[R] please help-DTK package

2011-02-08 Thread Lathouri, Maria
Dear all I am trying to do a multiple pairwise comparison test with Tukey-Kramer test as I have unequal sample sizes and variance. I have downloaded the DTK package from CRAN website in my computer for Windows, however I have difficulties in installing it in R. I have unzipped the compressed

[R] add error bars in a plot

2011-02-08 Thread Lathouri, Maria
Dear all I have a dataset of how metal concentrations change through time. I have made a plot of date versus metal concentration. However I want to add error bars in the plot. Could you help me? Thanks Maria [[alternative HTML version deleted]]

[R] Uncertainty analysis

2010-09-09 Thread Lathouri, Maria
Dear all I would like to run in R an uncertainty/sensitivity analysis. I know that these two are performed together. I have a geochemical model where I have the inputs, the water variables (e.g. pH, temperature, oxygen ect) and as well an output of different variables. What I would like to do

[R] change the type of lines and colours in interaction.plot

2010-09-03 Thread Lathouri, Maria
Dear all, I want to plot 8 chemical variables in the same plot. I have used the interaction.plot command: interaction.plot(speclong$Date,speclong$time2,speclong$outcome,xaxt=n,type=l,pch=20,xlab=, log=y, ylab=Concentration (ug/L),trace.label=,col=rainbow(8)) However, what it gives me is

[R] specify axis range

2010-08-31 Thread Lathouri, Maria
Dear all, I want to make a plot where I can specify the range of y axis. I am using the interaction.plot command and because the values of y axis are from 2 to 500, I am using a logarithmic scale. interaction.plot(speclong$Date,speclong$time2,speclong$outcome,xaxt=n,type=l,pch=20,xlab=,

[R] superscript in ylab

2009-10-28 Thread Lathouri, Maria
Dear all I am doing some plots in R. I want to have as label in y-axis Temperature (oC). I have used ylab=expression(paste({Temperature} ^o*C)) but what I get is TemperatureoC. How can I have a space between Temperature and the units and also the units to be in brackets? Many thanks Maria

[R] plot dates in x-axis

2009-10-13 Thread Lathouri, Maria
Hallo, I am trying to plot dates in x-axis. The format of my dates are in dd/mm/. At first I install zoo package. After R reads my file, I change the default format of dates to the format that I have, myfile-read.csv DATE-as.Date(DATE,format=%d/%m/%Y) up till now everything goes ok; when

[R] Trendline and R square value

2009-09-28 Thread Lathouri, Maria
Hi I would like to display the trendline and the R-square value in a xy scatter in R. For example if I want to plot f vs g I add the trendline using the commands below library(quantreg) plot(f,g) abline(rq(g~f)) however I don't know how to display the R2 in the graph. Thank you in advance.

[R] Time plots

2008-11-17 Thread Lathouri, Maria
(DATE,pH)) Until here it works fine, but I have the graph plotting only the points. What I want is to have a line (join these points) so to have a time plot. I have tried different commands such as lines(DATE,pH) or with(DF, lines(DATE,pH) but nothing works. What can I do? Yours Lathouri

[R] Boxplots with different variables and different ranges in R

2008-11-13 Thread Lathouri, Maria
Dear all, I am trying to make boxplots in one diagram but it is not working. Actually I have a large dataset, around 35 water quality variables with different units and of course in different ranges (some are orders of magnitude bigger than others). I want to produce one diagram with all the

[R] Enquiries about time plots in R

2008-11-12 Thread Lathouri, Maria
yours Lathouri Maria [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented