Re: [R] How to import an excel data file

2023-09-23 Thread Maria Lathouri via R-help
Dear David,  I also use excel files for R. This is what I do install.packages("readxl") library(readxl) mydata=read_excel('mydata.xlsx') Hope this helps.  Best, Maria Στις Σάββατο 23 Σεπτεμβρίου 2023 στις 09:23:43 π.μ. GMT+1, ο χρήστης Parkhurst, David έγραψε: I know I should save

Re: [R] how to change the y-axis to logarithmic in a barplot ggplot

2023-07-17 Thread Maria Lathouri via R-help
17 Ιουλίου 2023 στις 04:43:59 π.μ. GMT+1, ο χρήστης Ivan Krylov έγραψε: On Sun, 16 Jul 2023 21:51:10 + (UTC) Maria Lathouri via R-help wrote: > As you can see, the values range from 0 to 400. I want it to plot it > in bars; when I am plotting it as you can imagine the value

Re: [R] how to change the y-axis to logarithmic in a barplot ggplot

2023-07-17 Thread Maria Lathouri via R-help
, 2023 at 3:58 PM Maria Lathouri via R-help wrote: > I will find the ggplot help.  > > But I have tried everything, including what you have suggested and nothing > works. > > Kind regards, > Maria > > > > > > > Στις Κυριακή 16 Ιουλίου 2023 στις 11:22

Re: [R] how to change the y-axis to logarithmic in a barplot ggplot

2023-07-16 Thread Maria Lathouri via R-help
. It's not a ggplot list and you are likely to be chased off to ggplot's package maintainers nominated support pages. But really a Google search should surely have found this? On Sun, 16 Jul 2023, 22:51 Maria Lathouri via R-help, wrote: > Dear all,  > > ggplot(fc, aes(x = Temp, y = m

[R] how to change the y-axis to logarithmic in a barplot ggplot

2023-07-16 Thread Maria Lathouri via R-help
Dear all,  I am having the following dataset fc<- ID    values    databases Al    0.15    phreeqc Al    0.6    carbfix Al    0.47    actual Ca    7.2    phreeqc Ca    7.2    carbfix Ca    0.3    actual Na    14.4    phreeqc Na    84    carbfix Na    106    actual Cl    22    phreeqc Cl    21.9   

Re: [R] [External] Error in percentage stacked barplot

2023-05-03 Thread Maria Lathouri via R-help
        6 Na2O                    5                  4                5 CuO                      3        3                5 Cl                        1                  3                4" , header=TRUE, row.names="Component") likert(t(hellisheidi), ReferenceZero=.5,       xlab=&q

[R] Error in percentage stacked barplot

2023-05-02 Thread Maria Lathouri via R-help
Dear all,  I am trying to plot the following table in stacked barplot in percentages and also horizontal. Component      Sample 1      Sample 2      Sample 3CaO    45     52    48SiO2   25    22    18Al2O3

[R] Σχετ: x-axis tick marks length in ggplot2

2018-06-29 Thread Maria Lathouri via R-help
Dear Walter,  I tried to use scale_x_continuous but the arguments that I found was to change the labels, the limits and the breaks. I was only able to increase the number of the tick marks.  Best,Maria Στις 3:14 μ.μ. Πέμπτη, 28 Ιουνίου 2018, ο/η Walter Pina έγραψε: Dear Maria, you

[R] Σχετ: geom_text only in the first panel with facet_wrap in ggplot2

2018-06-25 Thread Maria Lathouri via R-help
+ geom_text(data = ann_text, aes(label = plot_lab) should do the trick HTH Ulrik On 2018-06-25 09:50, Maria Lathouri via R-help wrote: > Dear all, > > > I am trying to add text only in the first panel of a faceted ggplot; I > have been struggling to find a solution on t

[R] geom_text only in the first panel with facet_wrap in ggplot2

2018-06-25 Thread Maria Lathouri via R-help
Dear all, I am trying to add text only in the first panel of a faceted ggplot; I have been struggling to find a solution on this online but unfortunately none of what I found is working. Here it is a reproducible example. I hope it helps: library(gamm4) library(ggplot2)

[R] interaction term by a factor group in gamm4

2018-01-23 Thread Maria Lathouri via R-help
Dear all, I am writing as I would really need your help on the problem with gamm4. I have tried to find a solution online but I wasn't very successful. I am running a gamm4 model with an interaction between two variable using the tensor term, t2. I have a group variable (super end group) with

[R] Σχετ: Σχετ: change colour in barplot

2017-11-20 Thread Maria Lathouri via R-help
ter. Duncan Murdoch > > Hope this will help. > > Many thanks, > Maria > > > Στις 11:53 π.μ. Δευτέρα, 20 Νοεμβρίου 2017, ο/η Duncan Murdoch > <murdoch.dun...@gmail.com> έγραψε: > > > On 20/11/2017 6:38 AM, Maria Lathouri via R-help wrote: >  >  De

[R] Σχετ: change colour in barplot

2017-11-20 Thread Maria Lathouri via R-help
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.dun...@gmail.com> έγραψε: On 20/11/2017 6:38 AM, Maria Lathouri via

[R] change colour in barplot

2017-11-20 Thread Maria Lathouri via R-help
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  

[R] Σχετ: show 0 at y axis in xyplot lattice

2017-09-12 Thread Maria Lathouri via R-help
  panel.grid(h = -1, v = 0, lwd=1, lty=3, col="grey")         panel.abline(v=dat$dDate, lwd=1, lty=3, col="grey")         panel.xyplot(x, y, ...)         }         ) As you have upper and lower levels of Zn you may want to look at ?panel.polygon  Regards Duncan Duncan Mackay D

[R] Σχετ: show 0 at y axis in xyplot lattice

2017-09-11 Thread Maria Lathouri via R-help
7, ο/η Bert Gunter <bgunter.4...@gmail.com> έγραψε: 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 s

[R] show 0 at y axis in xyplot lattice

2017-09-11 Thread Maria Lathouri via R-help
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

[R] Σχετ: plotting gamm results in lattice

2017-06-13 Thread Maria Lathouri via R-help
ot(x,y, type="smooth")                   panel.xyplot(Q2, upper, lty=2, col="red")                   panel.xyplot(Q2, lower, lty=2, col="red")                   #panel.loess(x,y,...)                   #panel.rug(x = x[is.na(y)], y = y[is.na(x)])                 } ) If you

[R] Σχετ: Σχετ: Σχετ: plotting dates in x axis

2017-02-28 Thread Maria Lathouri via R-help
n easily adopt it by managing the sequention. Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Maria > Lathouri via R-help > Sent: Tuesday, February 28, 2017 1:14 PM > To: r-help@r-project.org; Jim Lemon <drjimle...@gmail

[R] Σχετ: Σχετ: plotting dates in x axis

2017-02-28 Thread Maria Lathouri via R-help
if I can show every two years instead. I think it would be much better.   Many thanks.  Kind regards,Maria Στις 11:56 π.μ. Τρίτη, 28 Φεβρουαρίου 2017, ο/η Maria Lathouri via R-help <r-help@r-project.org> έγραψε: Dear all, Sorry about that. My mistake. Here is an example of my data

[R] Σχετ: plotting dates in x axis

2017-02-28 Thread Maria Lathouri via R-help
t;library(plotrix) ># set the tick marks at the middle of each year >axis.dates<-as.Date(paste(1998:2012,6,30,sep="-")) >staxlab(1,axis.dates,1998:2012,nlines=3) > >Obviously you don't want all of the months, so just add the months to >the years: > >plot(aa$sdate,aa$var1,

[R] plotting dates in x axis

2017-02-27 Thread Maria Lathouri via R-help
Dear all,  I have an excel file of 180 observations with dates and one variable, from 1998 to 2012 by random months (there are some years that I might not have all the months or I might have two observations in one month). I am trying to plot the dates in x axis and the variable in y axis. I

[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] change the colour line in gamm4 plotting

2016-07-26 Thread Maria Lathouri via R-help
Dear all I am stuck probably in a simple plotting question My model is:model.1<-gamm4(y~s(x1, by=end.group)+Year+K1+k2+k3, data=.., random=~(1|WB_ID/Site_ID)) where y is my dependent variable, x1 is the smooth covariate and I use the by argument for the smooth term based on six different