Displaying 20 results from an estimated 40000 matches similar to: "Time plots"
2011 Mar 13
3
how to change the margins of a plot area
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 area, left and right. How can I minimise that distance between the boxplots and
2008 Nov 12
2
Enquiries about time plots in R
Dear all,
My name is Maria Lathouri and I am currently doing a PhD at Imperial College of London about time series of environmental variables in surface waters. I am trying to do some time plots with R but it seems that it is not working.
The problem is that the time is not regular, for example, a small dataset can be seen below:
Date pH
1/02/1998 5.5
5/03/1998 5
2008 Nov 13
1
Boxplots with different variables and different ranges in R
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 boxplots of the variables of my dataset.
I tried these series of commands:
>oldpar <-
2009 Oct 28
2
superscript in ylab
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
[[alternative HTML version deleted]]
2011 Mar 15
3
fitting a distribution to a ecdf plot
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 could help me on that.
Thank you.
Kind regards
Maria
-------------- next part --------------
2010 Aug 31
2
specify axis range
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="", log="y", ylab="Concentration
2011 Feb 17
2
barplot with errorbars
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]]
2017 Nov 20
3
Σχετ: change colour in barplot
Dear all,?
I am really sorry for this. I have attached the script and a .csv file with an example.?
Hope this will help.
Many thanks,Maria
???? 11:53 ?.?. ???????, 20 ????????? 2017, ?/? Duncan Murdoch <murdoch.duncan at gmail.com> ??????:
On 20/11/2017 6:38 AM, Maria Lathouri via R-help wrote:
>? Dear all
> I know that it is a very simple question but it seems that I cannot
2017 Nov 20
0
Σχετ: change colour in barplot
On 20/11/2017 7:09 AM, Maria Lathouri wrote:
> Dear all,
>
> I am really sorry for this. I have attached the script and a .csv file
> with an example.
The problem is that you have dat as a matrix with only one row.
barplot() applies the colours to the rows of dat; since you have only
one row, everything ends up blue.
You can fix this by creating dat as a vector using
2009 Oct 13
1
plot dates in x-axis
Hallo,
I am trying to plot dates in x-axis. The format of my dates are in dd/mm/yyyy. 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 however I go and plot for example
>plot(DATE, Discharge)
in the x-axis I
2017 Sep 11
0
show 0 at y axis in xyplot lattice
Not reproducible, as we have neither "example.csv" nor "Date" .
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Mon, Sep 11, 2017 at 2:38 PM, Maria Lathouri <mlathouri at yahoo.gr> wrote:
> Dear
2017 Sep 11
2
Σχετ: show 0 at y axis in xyplot lattice
Dear Bert and all,
I am really sorry. This is the full code:
dat<-read.csv("example.csv")attach(dat)
sdate<-as.Date(Date, format="%Y-%m-%d")
#change the colour of the strip background
my.settings <- canonical.theme(color=FALSE)
my.settings[['strip.background']]$col <- "blue"
dat_key <- list(space="right",
??????????????? lines =
2017 Nov 20
0
change colour in barplot
On 20/11/2017 6:38 AM, Maria Lathouri via R-help wrote:
> Dear all
> I know that it is a very simple question but it seems that I cannot change the colour in the bars.
> I have the following dataframe:
> A ? ? ? ? ? ? ? ?? B ? ? ? ? ? ? ? ? C ? ? ? ? ? D ? ? ? ?? E ? ? ? ? ? ? ? ? ?? F ? ? ? ? ? ? ? ? ?? G ? ? ? ? ? ? ? ?0.0.24 ? ? ? ?? 152460 ? ? ? ? 474 ? ? ? 5.5 ? ? ?? 612000 ? ?
2017 Sep 12
2
Σχετ: show 0 at y axis in xyplot lattice
Dear all,
Thank you very much for the help. ylim=c(-5, 80) worked.?
Regarding the reproducible example, I used dput () and saved the file as txt. It is not the first time that I used this way and normally it works. Because when I try to attach a .csv file with the data, most of the time it doesn't go through.?
I will know for the next time.?
Many thanks.
Regards,Maria
???? 2:11 ?.?.
2017 Sep 12
0
Σχετ: show 0 at y axis in xyplot lattice
Dear Maria
The file you attached to your first e-mail did come through but I think
some people on the list must have missed it.
Michael
On 12/09/2017 12:54, Maria Lathouri via R-help wrote:
> Dear all,
> Thank you very much for the help. ylim=c(-5, 80) worked.
> Regarding the reproducible example, I used dput () and saved the file as txt. It is not the first time that I used this way
2017 Nov 20
2
change colour in barplot
Dear all
I know that it is a very simple question but it seems that I cannot change the colour in the bars.
I have the following dataframe:?
A ? ? ? ? ? ? ? ?? B ? ? ? ? ? ? ? ? C ? ? ? ? ? D ? ? ? ?? E ? ? ? ? ? ? ? ? ?? F ? ? ? ? ? ? ? ? ?? G ? ? ? ? ? ? ? ?0.0.24 ? ? ? ?? 152460 ? ? ? ? 474 ? ? ? 5.5 ? ? ?? 612000 ? ? ? ? ? 59061000 ? ? ? 1540313
and here is the script:
2017 Sep 11
4
show 0 at y axis in xyplot lattice
Dear all
I am trying to make a plot in xyplot lattice by groups. I would like to show "0" in y axis but I don't want to be aligned with the x axis. I want to be a little bit above.
I have tried many options but I don't get what I want. I also tried ylim=c(0, 80) but both 0 and 80 are fully aligned with the x-axis and the upper boundary of the plot, respectively:
xyplot(upper.zn +
2017 Sep 11
0
show 0 at y axis in xyplot lattice
1. Not reproducible since my.settings, dat_key, sdate not provided.
2. Why did you not try something like ylim = c(-5,80) ?
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Mon, Sep 11, 2017 at 12:33 PM, Maria Lathouri via
2023 May 03
1
[External] Error in percentage stacked barplot
Dear Richard,?
Thank you very much for your reply. I went through the code and it worked. I was also able to change the colours.?
I was wondering if I can change the legend position; instead of being in the bottom to be on the left side.?
I tried the following but without any success
strip = FALSE
strip.right = TRUE
likert(t(hellisheidi), ReferenceZero=.5, xlab="X-lab",
2017 Sep 12
0
show 0 at y axis in xyplot lattice
Hi Maria
Rule 1 make sure your data is in the right format
dat <- source("G:/1/savedat.txt")
> dat
$value
Location Date Zn2 upper.zn lower.zn
1 upstream 2016-04-27 29.92477 55.59800 13.912207
2 spill 2016-04-27 12.84040 22.07006 6.964934
3 downstream 2016-04-27 22.49673 41.60901 11.739109
4 upstream 2016-06-28 23.98425 45.60219 10.690640
5