Re: [R] How to set the correct libomp for R

2024-04-09 Thread Ivan Krylov via R-help
В Tue, 9 Apr 2024 09:55:06 +0200 gernop...@gmx.net пишет: > If I only move away /usr/local/lib/libomp.dylib, I can still install > it. So it seems that also here the internal libomp.dylib from R is > used. Just the bundled omp files at /usr/local/include (omp-tools.h, > omp.h, ompt.h) seem to be

Re: [R] How to set the correct libomp for R

2024-04-09 Thread gernophil--- via R-help
by a mismatch of these file and the used libomp.dylib?     Gesendet: Dienstag, 09. April 2024 um 09:47 Uhr Von: gernop...@gmx.net An: "Ivan Krylov" , "gernophil--- via R-help" Cc: gernop...@gmx.net Betreff: Re: [R] How to set the correct libomp for R Sorry fort he late reply

Re: [R] How to set the correct libomp for R

2024-04-09 Thread gernophil--- via R-help
Sorry fort he late reply, your mail ended up in my spam and I've just seen it recently. > Does the behaviour change if you temporarily move away > /usr/local/lib/libomp.dylib? It does not change the behavior after loading (or attaching) data.table using "library(data.table)". It is still

Re: [R] How to set the correct libomp for R

2024-04-08 Thread Ivan Krylov via R-help
В Mon, 8 Apr 2024 10:29:53 +0200 gernophil--- via R-help пишет: > I have some weird issue with using multithreaded data.table in macOS > and I am trying to figure out, if it’s connected to my libomp.dylib. > I started using libomp as stated here: > https://mac.r-project.org/openmp/ Does the

[R] How to set the correct libomp for R

2024-04-08 Thread gernophil--- via R-help
Hey everyone, I have some weird issue with using multithreaded data.table in macOS and I am trying to figure out, if it’s connected to my libomp.dylib. I started using libomp as stated here: https://mac.r-project.org/openmp/   Everything worked fine till beginning of this year, but all of a

Re: [R] How to tweak genomic plot with genoPlotR?

2024-04-02 Thread Luigi Marongiu
Already did... On Tue, Apr 2, 2024 at 10:45 AM Eric Berger wrote: > > According to https://cran.r-project.org/web/packages/genoPlotR/index.html > the maintainer of genoPlotR is > > Lionel Guy > > Send your question also to him. > > On Tue, Apr 2, 2024 at 11:27 AM Luigi Marongiu > wrote: > > >

Re: [R] How to tweak genomic plot with genoPlotR?

2024-04-02 Thread Eric Berger
According to https://cran.r-project.org/web/packages/genoPlotR/index.html the maintainer of genoPlotR is Lionel Guy Send your question also to him. On Tue, Apr 2, 2024 at 11:27 AM Luigi Marongiu wrote: > > I would like to use your genoPlotR package > (doi:10.1093/bioinformatics/btq413) to

[R] How to tweak genomic plot with genoPlotR?

2024-04-02 Thread Luigi Marongiu
I would like to use your genoPlotR package (doi:10.1093/bioinformatics/btq413) to compare the genomes of two isolates of E. coli K-12 that I have. One is a K-12 that was in my lab's fridge; the other is a derivative of K-12 bought some time ago, HB101. I tried to use genoPlotR, but I could not

Re: [R] How to invert axis within defined range with ggplot2 scale_y_reverse?

2024-03-05 Thread Luigi Marongiu
Thank you. I though the values would have been reversed automatically. Case closed then On Tue, Mar 5, 2024 at 2:43 PM Duncan Murdoch wrote: > > On 05/03/2024 7:16 a.m., Luigi Marongiu wrote: > > A <- rep(c(0, 3, 6, 12, 24), 3) > > B <- c(rep(0,5), rep(1,5), rep(2,5)) > > V <- c(27.5,27.01,

Re: [R] How to invert axis within defined range with ggplot2 scale_y_reverse?

2024-03-05 Thread Duncan Murdoch
On 05/03/2024 7:16 a.m., Luigi Marongiu wrote: A <- rep(c(0, 3, 6, 12, 24), 3) B <- c(rep(0,5), rep(1,5), rep(2,5)) V <- c(27.5,27.01,27.75,27.98,27.4,25.69, 26.17,27.78,26.08, 24.97,23.18,21.78,22.49,21.85,22.2) df <- data.frame(Conc = A,

[R] How to invert axis within defined range with ggplot2 scale_y_reverse?

2024-03-05 Thread Luigi Marongiu
Hello, I am drawing some data with ggplot2 and would like to reverse the order of the y axis and set a custom range for it. I can do the former but when I add the key `limits` to `scale_y_reverse` I get an error as shows below and, worse, no data shown in the plot. How can I properly set a reverse

Re: [R] how to specify uncorrelated random effects in nlme::lme()

2024-01-09 Thread Viechtbauer, Wolfgang (NP)
2:43 > To: R-help > Subject: [R] how to specify uncorrelated random effects in nlme::lme() > > Dear professor, > > I'm using package nlme, but I can't find a way to specify two uncorrelated > random effects. For example, a random intercept and a random slope. In package

[R] how to specify uncorrelated random effects in nlme::lme()

2024-01-09 Thread 王震
Dear professor, I'm using package nlme, but I can't find a way to specify two uncorrelated random effects. For example, a random intercept and a random slope. In package lme4, we can specifyx + (x ll g) to realize, but how in nlme? Thanks! Zhen Wang

[R] How to calculate relative risk from GAM model in mgcv package?

2023-12-06 Thread Eren Yalın
Hi R users,I am a beginner in the use of R. I need urgent help for my thesis study. I have daily air pollution parameters PM10, PM2.5 CO, NO2, SO2, and O3. I also have daily hospital admission numbers. Taking into account the effect of

Re: [R] How can I remove my packages from rdrr.io?

2023-11-01 Thread David Winsemius
> On Nov 1, 2023, at 6:06 AM, Kim Emilia wrote: > > Hello all, > > I would like to take down my packages posted/created on the website rdrr.io. > [https://rdrr.io/] Is there any way to take down packages from the website? > It would be appreciated if you suggested/offered a way to remove the

Re: [R] How can I remove my packages from rdrr.io?

2023-11-01 Thread Ben Bolker
There is a github site with an issues list: https://github.com/rdrr-io/rdrr-issues/issues It looks like people have successfully requested removal in the past, e.g. https://github.com/rdrr-io/rdrr-issues/issues/113 On 2023-11-01 9:06 a.m., Kim Emilia wrote: Hello all, I would like to

Re: [R] How can I remove my packages from rdrr.io?

2023-11-01 Thread Ivan Krylov
В Wed, 1 Nov 2023 22:06:27 +0900 Kim Emilia пишет: > I would like to take down my packages posted/created on the website > rdrr.io. I think it's unlikely to find people affiliated with rdrr.io here on the R-help mailing list. Have you tried contacting the website author via the links at the

[R] How can I remove my packages from rdrr.io?

2023-11-01 Thread Kim Emilia
Hello all, I would like to take down my packages posted/created on the website rdrr.io. [https://rdrr.io/] Is there any way to take down packages from the website? It would be appreciated if you suggested/offered a way to remove the package from the website. Thank you. [[alternative

Re: [R] How to Reformat a dataframe

2023-10-28 Thread jim holtman
You can also use the pivot_longer to do it: library(tidyverse) input <- structure(list(...1 = c(92.9925354, 76.0024254, 44.99547465, 28.00536465, 120.0068103, 31.9980405, 85.0071837, 40.1532933, 19.3120917, 113.12581575, 28.45843425, 114.400074, 143.925, 46.439634, 20.7845679, 50.82874575,

Re: [R] How to Reformat a dataframe

2023-10-28 Thread avi.e.gross
Paul, I have snipped away your long message and want to suggest another approach or way of thinking to consider. You have received other good suggestions and I likely would have used something like that, probably within the dplyr/tidyverse but consider something simpler. You seem to be viewing

Re: [R] How to Reformat a dataframe

2023-10-28 Thread Rui Barradas
Às 04:13 de 28/10/2023, Paul Bernal escreveu: Dear friends, I have the following dataframe: dim(alajuela_df) [1] 126 12 dput(alajuela_df) structure(list(...1 = c(92.9925354, 76.0024254, 44.99547465, 28.00536465, 120.0068103, 31.9980405, 85.0071837, 40.1532933, 19.3120917, 113.12581575,

Re: [R] How to Reformat a dataframe

2023-10-28 Thread Chris Evans via R-help
The tidyverse idiom looks very different but does what you want and I have come to like it. What idiom of R one likes, for the mostly small datasets I handle, is largely a matter of preferenceds for "readability", itself very personal. Here's my tidyverse way of doing what you wanted: ###

Re: [R] How to Reformat a dataframe

2023-10-27 Thread Paul Bernal
Hi Iris, Thank you so much for your valuable feedback. I wonder why your code gives you 1512 rows, given that the original structure has 12 columns and 126 rows, so I would expect (125*12)+ 9=1,509 total rows. Cheers, Paul El El vie, 27 de oct. de 2023 a la(s) 10:40 p. m., Iris Simmons <

Re: [R] How to Reformat a dataframe

2023-10-27 Thread Iris Simmons
You are not getting the structure you want because the indexes are wrong. They should be something more like this: i <- 0 for (row in 1:nrow(alajuela_df)){ for (col in 1:ncol(alajuela_df)){ i <- i + 1 df[i,1]=alajuela_df[row,col] } } but I think what you are doing can be written much

[R] How to Reformat a dataframe

2023-10-27 Thread Paul Bernal
Dear friends, I have the following dataframe: dim(alajuela_df) [1] 126 12 dput(alajuela_df) structure(list(...1 = c(92.9925354, 76.0024254, 44.99547465, 28.00536465, 120.0068103, 31.9980405, 85.0071837, 40.1532933, 19.3120917, 113.12581575, 28.45843425, 114.400074, 143.925, 46.439634,

Re: [R] How to Calculate the Mean by Multiple Groups in R

2023-10-24 Thread Gabor Grothendieck
A variation is to remove Well and then we can use dot to refer to the remaining columns. aggregate(cbind(OD, ODnorm) ~ . , subset(df, select = - Well), mean) On Tue, Oct 24, 2023 at 8:32 AM Luigi Marongiu wrote: > > Hello, > I have a data frame with different groups (Time, Target, Conc) and

Re: [R] How to Calculate the Mean by Multiple Groups in R

2023-10-24 Thread Luigi Marongiu
Thank you On Tue, Oct 24, 2023 at 3:01 PM peter dalgaard wrote: > > Also, > > > aggregate(cbind(OD, ODnorm) ~ Time + Target + Conc, data = df, FUN = "mean") > Time Target Conc ODODnorm > 11 BACT1 765. 108.3 > 21 BACT2 745. 88.3 > 31 BACT

Re: [R] How to Calculate the Mean by Multiple Groups in R

2023-10-24 Thread peter dalgaard
Also, > aggregate(cbind(OD, ODnorm) ~ Time + Target + Conc, data = df, FUN = "mean") Time Target Conc ODODnorm 11 BACT1 765. 108.3 21 BACT2 745. 88.3 31 BACT3 675. 18.0 (You might wish for "cbind(OD,ODnorm) ~ . - Well", but

Re: [R] How to Calculate the Mean by Multiple Groups in R

2023-10-24 Thread Luigi Marongiu
Thank you, the last is exactly what I was looking for. On Tue, Oct 24, 2023 at 2:41 PM Sarah Goslee wrote: > > Hi, > > I think you're misunderstanding which set of variables go on either > side of the formula. > > Is this what you're looking for? > > > aggregate(OD ~ Time + Target + Conc, data =

Re: [R] How to Calculate the Mean by Multiple Groups in R

2023-10-24 Thread Sarah Goslee
Hi, I think you're misunderstanding which set of variables go on either side of the formula. Is this what you're looking for? > aggregate(OD ~ Time + Target + Conc, data = df, FUN = "mean") Time Target Conc OD 11 BACT1 765. 21 BACT2 745. 31 BACT3

[R] How to Calculate the Mean by Multiple Groups in R

2023-10-24 Thread Luigi Marongiu
Hello, I have a data frame with different groups (Time, Target, Conc) and each entry has a triplicate value of the measurements OD and ODnorm. How can I merge the triplicates into a single mean value? I tried the following: ``` df = data.frame(Time=rep(1, 9), Well=paste("A", 1:9, sep=""),

Re: [R] How to fix this problem

2023-09-25 Thread CALUM POLWART
y, September 25, 2023 11:09 AM > To: avi.e.gr...@gmail.com; 'Parkhurst, David' ; > r-help@r-project.org > Subject: Re: [R] How to fix this problem > > [External Email] > > It looks here as though the E coli column has commas in it so will be > treated as character. > >

Re: [R] How to fix this problem

2023-09-25 Thread Ebert,Timothy Aaron
l Dewey Sent: Monday, September 25, 2023 11:09 AM To: avi.e.gr...@gmail.com; 'Parkhurst, David' ; r-help@r-project.org Subject: Re: [R] How to fix this problem [External Email] It looks here as though the E coli column has commas in it so will be treated as character. Michael On 25/09/2023 15:45, a

Re: [R] How to fix this problem

2023-09-25 Thread Michael Dewey
-project.org Subject: [R] How to fix this problem I have a matrix, KD6, and I�m trying to get a correlation matrix from it. When I enter cor(KD6), I get the message �Error in cor(KD6) : 'x' must be numeric�. Here are some early lines from KD6: Flow E..coliTNSRP TPTSS 1

Re: [R] How to fix this problem

2023-09-25 Thread avi.e.gross
lie commas. -Original Message- From: R-help On Behalf Of Parkhurst, David Sent: Sunday, September 24, 2023 2:06 PM To: r-help@r-project.org Subject: [R] How to fix this problem I have a matrix, KD6, and I�m trying to get a correlation matrix from it. When I enter cor(KD6), I get

Re: [R] How to fix this problem

2023-09-25 Thread Ivan Krylov
On Sun, 24 Sep 2023 18:05:43 + "Parkhurst, David" wrote: > I have a matrix, KD6, and I_m trying to get a correlation matrix from > it. When I enter cor(KD6), I get the message _Error in cor(KD6) : > 'x' must be numeric_. > Here are some early lines from KD6: >Flow E..coli

Re: [R] How to fix this problem

2023-09-25 Thread Ivan Calandra
Dear David, simply check str(KD6). My guess (because we don't have your dataset, only a print of it) is that KD6 is not a matrix but a data.frame. The problem seems to come from the column "E..coli" which contains commas instead of periods (so text and not number). There might be other issues

[R] How to fix this problem

2023-09-25 Thread Parkhurst, David
I have a matrix, KD6, and I�m trying to get a correlation matrix from it. When I enter cor(KD6), I get the message �Error in cor(KD6) : 'x' must be numeric�. Here are some early lines from KD6: Flow E..coliTNSRP TPTSS 1 38.82,4201.65300 0.0270 0.0630

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

2023-09-24 Thread Rainer Hurling
Dear David, Am 23.09.23 um 01:10 schrieb Parkhurst, David: I know I should save it as a .csv file, which I have done. I�m told I should use the read_excel() function from the readxl package. My question is, how do I express the location of the file. The file is named KurtzData.csv. Its

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

2023-09-23 Thread Duncan Murdoch
On 23/09/2023 3:35 p.m., Ivan Krylov wrote: В Fri, 22 Sep 2023 23:10:58 + "Parkhurst, David" пишет: Its location in my Mac files is DFPfiles/ae/FriendsMonroe/KurtzData.csv How exactly---What _, etc.---do I type with its name in the read_excel() function? In RGui on Windows,

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

2023-09-23 Thread Ivan Krylov
В Fri, 22 Sep 2023 23:10:58 + "Parkhurst, David" пишет: > Its location in my Mac files is > DFPfiles/ae/FriendsMonroe/KurtzData.csv How exactly---What _, > etc.---do I type with its name in the read_excel() function? In RGui on Windows, file.choose() opens a dialog window letting the user

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

2023-09-23 Thread Stevie Pederson
Hi David, If you're using RStudio, I'd encourage the use of R Projects, with a new project for each analysis, even if you only do one every few years. That would also correspond to a new directory for each analysis, which many also find helpful. The package 'here' [install.packages("here")] then

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

2023-09-23 Thread Richard O'Keefe
Are you sure that read.csv() can't read your data? [If you depend on extra packages you might want to consider using the 'groundhog' package so that you can be more confident of reproducing your work in a year or two.] You said that your question is how you should write the name of the file in

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

[R] How to import an excel data file

2023-09-23 Thread Parkhurst, David
I know I should save it as a .csv file, which I have done. I�m told I should use the read_excel() function from the readxl package. My question is, how do I express the location of the file. The file is named KurtzData.csv. Its location in my Mac files is DFPfiles/ae/FriendsMonroe/KurtzData.csv

Re: [R] how to get paste() to output \% so LaTeX will interpret it as a percent sign rather than a comment symbol

2023-09-08 Thread Hadley Wickham
You're getting confused between the contents of the string and the printed representation of the string. There's a little bit about this in R4DS: https://r4ds.hadley.nz/strings#escapes (or in brief, do writeLines(trailing.7.message)) Hadley On Fri, Sep 8, 2023 at 7:23 AM Christopher Ryan via

[R] how to get paste() to output \% so LaTeX will interpret it as a percent sign rather than a comment symbol

2023-09-08 Thread Christopher Ryan via R-help
I'm using a .Rnw --> Sweave --> pdflatex workflow on Windows 10, with emacs 26.3 and ESS (not sure which version.) I have this code: n.tests.7 <- 3 ## for example trailing.7.pos.percent <- 12 ## for example trailing.7.message <- ifelse( n.tests.7 > 0, paste("In the past seven

Re: [R] How to draw plot marks without label?

2023-09-05 Thread Luigi Marongiu
Thank you that is exactly it. I know these are basic questions but I can't find the solution on either manuals or online... Best regards Luigi On Tue, Sep 5, 2023 at 11:33 PM Bert Gunter wrote: > > Luigi: > > For base R graphics, you should always consult ?par for optional graphical >

Re: [R] How to draw plot marks without label?

2023-09-05 Thread Bert Gunter
Luigi: For base R graphics, you should always consult ?par for optional graphical parameters when the high level graphics function doesn't appear to provide the control you would like. I don't use base graphics -- i.e. i"m not particularly facile with it -- but as you provided an example, I

Re: [R] How to draw plot marks without label?

2023-09-05 Thread Paul Murrell
Hi Do you mean like this ... ? stripchart(df$Y ~ df$X, method = "jitter", offset=1/3, vertical = TRUE, las=1, pch=16, cex=2, ylab="Y", xlab="X", main="Example", axes=FALSE) box() axis(1) axis(2, labels=FALSE) axis(4,

[R] How to draw plot marks without label?

2023-09-05 Thread Luigi Marongiu
I would like to draw a graph where the y-lables are missing but the marks still present. In this example, I get marks from 2 to 140 000 with increments of 20 000. I could use `plot(... yaxt="n"...)` combined with `axis(2, at..., label="")` but this needs to know exactly the sequence of marks

Re: [R] How to create an R input

2023-09-01 Thread Jeff Reichman
Jim Yes that is helpful. Everything goes inside the function Jeff -Original Message- From: Jim Lemon Sent: Wednesday, August 30, 2023 10:54 PM To: Jeff Reichman Cc: r-help@r-project.org Subject: Re: [R] How to create an R input HI Jeff, This might give you a start. add_stuff

Re: [R] How to create an R input

2023-08-31 Thread Ebert,Timothy Aaron
To: r-help@r-project.org Subject: [R] How to create an R input [External Email] R Help Trying to figure out how to create a simple program that will as the user from a value input and simply add 5 units to that value then ask the user for another value and add 45 units to it and on and on

Re: [R] How to create an R input

2023-08-30 Thread Jim Lemon
HI Jeff, This might give you a start. add_stuff<-function(x) { x<-xinc<-NA finished<-FALSE while(is.na(x)) x<-as.numeric(readline("What number do you want to start? ")) while(is.na(xinc) || !finished) { xinc<-as.numeric(readline("What number do you want to add? ")) if(is.numeric(xinc))

[R] How to create an R input

2023-08-30 Thread Jeff Reichman
R Help Trying to figure out how to create a simple program that will as the user from a value input and simply add 5 units to that value then ask the user for another value and add 45 units to it and on and on. Then how does one exit the loop of program? # Create a function called

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

2023-07-17 Thread Kimmo Elo
Hi, Have you tried: scale_y_continuous(trans='log10') HTH, Kimmo Lähettäjä: Maria Lathouri via R-help Lähetetty: maanantai 17. heinäkuuta 2023 23.01.57 Vastaanottaja: Maria Lathouri via R-help; Ivan Krylov Aihe: Re: [R] how to change the y-axis

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

2023-07-17 Thread Maria Lathouri via R-help
Hi Ivan,  yes you are right. I have many values close to zero and if I use log, they are instantly transformed to negative values and then the bars show above. The sqrt trans worked ok but when I used the pseudo_log_trans, it did the work! Many thanks.  Kind regards, Maria Στις Δευτέρα

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

2023-07-17 Thread Maria Lathouri via R-help
Dear Bert,  Thank you very much for the tip. The reason that I took the initiative to write here is because I receive here as well questions about ggplot. Next time I will use the ggplot help.  Maria Στις Δευτέρα 17 Ιουλίου 2023 στις 12:20:25 π.μ. GMT+1, ο χρήστης Bert Gunter έγραψε:

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

2023-07-17 Thread Kimmo Elo
Hi, try: scale_y_continuous(trans='log10') HTH, Kimmo 17. heinäk. 2023, 1.58, Maria Lathouri via R-help mailto:r-help@r-project.org>> kirjoitti: I will find the ggplot help. But I have tried everything, including what you have suggested and nothing works. Kind regards, Maria Στις

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

2023-07-16 Thread 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 values near > zero don't show at all. A logarithmic scale won't work when the range of numbers

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

2023-07-16 Thread Bert Gunter
Maria, ggplot is part of the Posit -- formerly RStudio -- assortment of contributed packages. They have their own support site here , which you *may* find useful for such questions, also. Though ggplot queries *are* frequently posted and answered on R-Help. Cheers,

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

2023-07-16 Thread CALUM POLWART
The data snippet doesn't make sense for the code you provided Using the snippet I'd be doing ggplot2(fc, aes(x = ID, y= value)) + geom_col() + scale_y_log10() And adjusting... Not sure if that's what you are trying to do? On Sun, 16 Jul 2023, 23:57 Maria Lathouri, wrote: > I will find the

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

2023-07-16 Thread Maria Lathouri via R-help
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:36 μ.μ. GMT+1, ο χρήστης CALUM POLWART έγραψε: Try adding scale_y_log10() This is a general R help list.

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

2023-07-16 Thread CALUM POLWART
Try adding scale_y_log10() This is a general R help list. 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,

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

2023-07-16 Thread David Winsemius
On 7/16/23 14:51, Maria Lathouri via R-help wrote: 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   

[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] How to add error bars to a line plot with ggplot2?

2023-07-14 Thread Luigi Marongiu
Thank you, the problem was indeed about factors. Case solved On Fri, Jul 14, 2023 at 7:05 PM Rui Barradas wrote: > > Às 17:33 de 14/07/2023, Luigi Marongiu escreveu: > > Hello, > > I am measuring a certain variable at given time intervals and > > different concentrations of a reagent. I would

Re: [R] How to add error bars to a line plot with ggplot2?

2023-07-14 Thread Rui Barradas
Às 17:33 de 14/07/2023, Luigi Marongiu escreveu: Hello, I am measuring a certain variable at given time intervals and different concentrations of a reagent. I would like to make a scatter plot of the values, joined by a line to highlight the temporal measure. I can plot this all right. Now,

Re: [R] How to add error bars to a line plot with ggplot2?

2023-07-14 Thread Ivan Krylov
В Fri, 14 Jul 2023 18:33:38 +0200 Luigi Marongiu пишет: > COLS = c("green", "red", "blue", "yellow") > geom_errorbar(aes(x=Time, ymin=ddC-SD, ymax=ddC+SD, colour=mM, > group=mM), width=.1, colour=COLS) + The last `colour` argument in the call above is a character vector of length 4. You

[R] How to add error bars to a line plot with ggplot2?

2023-07-14 Thread Luigi Marongiu
Hello, I am measuring a certain variable at given time intervals and different concentrations of a reagent. I would like to make a scatter plot of the values, joined by a line to highlight the temporal measure. I can plot this all right. Now, since I have more than one replicate, I would like to

Re: [R] How to plot both lines and points by group on ggplot2

2023-07-01 Thread Luigi Marongiu
Thank you that is exactly it! The problem was to connect each point of the series 'Conc' with a line. Best regards Luigi On Sat, Jul 1, 2023 at 8:33 PM Chris Evans wrote: > > > On 01/07/2023 19:20, Luigi Marongiu wrote: > > Hello, > > I have a dataframe with measurements stratified by the

Re: [R] How to plot both lines and points by group on ggplot2

2023-07-01 Thread Rui Barradas
Às 19:20 de 01/07/2023, Luigi Marongiu escreveu: Hello, I have a dataframe with measurements stratified by the concentration of a certain substance. I would like to plot the points of the measures and connect the points within each series of concentrations. When I launch ggplot2 I get the error

Re: [R] How to plot both lines and points by group on ggplot2

2023-07-01 Thread Bert Gunter
... and so ignore my previous missive, as you *did* provide data. Sorry for the noise. -- Bert On Sat, Jul 1, 2023 at 11:53 AM Chris Evans via R-help wrote: > > [Whoops, forgot that default reply-to is to the sender.] > > > On 01/07/2023 19:20, Luigi Marongiu wrote: > > Hello, > > I have a

Re: [R] How to plot both lines and points by group on ggplot2

2023-07-01 Thread Chris Evans via R-help
[Whoops, forgot that default reply-to is to the sender.] On 01/07/2023 19:20, Luigi Marongiu wrote: Hello, I have a dataframe with measurements stratified by the concentration of a certain substance. I would like to plot the points of the measures and connect the points within each series of

Re: [R] How to plot both lines and points by group on ggplot2

2023-07-01 Thread Bert Gunter
Can your post a few lines of your data frame (e.g. via dput(head(...))) to make it clearer. I found this statement confusing: "... measurements stratified by the concentration of a certain substance. I would like to plot the points of the measures and connect the points within each series of

[R] How to plot both lines and points by group on ggplot2

2023-07-01 Thread Luigi Marongiu
Hello, I have a dataframe with measurements stratified by the concentration of a certain substance. I would like to plot the points of the measures and connect the points within each series of concentrations. When I launch ggplot2 I get the error ``` geom_path: Each group consists of only one

Re: [R] how to draw a stripplot in vertical orientation, using lattice

2023-05-19 Thread Bert Gunter
Well, my aesthetic sense is not offended, so: dd |> stripplot(height ~ "", data = _, horizontal = FALSE) ## seems fine to me. ## But if you prefer, the following is a more verbose but maybe more "seemly" version :-) : dd |> stripplot(height ~ 1, data = _, horizontal = FALSE, xlab =

[R] how to draw a stripplot in vertical orientation, using lattice

2023-05-19 Thread Christopher Ryan via R-help
I'm attempting to describe the height of a fall from a building, so the vertical orientation has a certain attraction. dd <- data.frame(nothing = rep(1:2, each = 6), height = runif(n=12, min=0, max=30)) dd ## pretty much what I'm looking for with(dd, stripchart(height, vertical = TRUE)) ## but

Re: [R] How to test the difference between paired correlations?

2023-03-23 Thread John C Frain
roportion of observations are as large or larger than the > observed. This is your p-value. > > > > Tim > > > > -Original Message- > > From: R-help On Behalf Of Luigi Marongiu > > Sent: Wednesday, March 22, 2023 5:12 PM > > To: r-help > >

Re: [R] How to test the difference between paired correlations?

2023-03-23 Thread Luigi Marongiu
as large or larger than the observed. > This is your p-value. > > Tim > > -Original Message- > From: R-help On Behalf Of Luigi Marongiu > Sent: Wednesday, March 22, 2023 5:12 PM > To: r-help > Subject: [R] How to test the difference between paired correla

Re: [R] How to test the difference between paired correlations?

2023-03-22 Thread Ebert,Timothy Aaron
are as large or larger than the observed. This is your p-value. Tim -Original Message- From: R-help On Behalf Of Luigi Marongiu Sent: Wednesday, March 22, 2023 5:12 PM To: r-help Subject: [R] How to test the difference between paired correlations? [External Email] Hello, I have three numerical

[R] How to test the difference between paired correlations?

2023-03-22 Thread Luigi Marongiu
Hello, I have three numerical variables and I would like to test if their correlation is significantly different. I have seen that there is a package that "Test the difference between two (paired or unpaired) correlations". [https://www.personality-project.org/r/html/paired.r.html] However, there

Re: [R] How to split a overflow slide content to slides automatically using revealjs in rmarkdown?

2023-02-09 Thread Ivan Krylov
В Wed, 08 Feb 2023 18:36:54 -0800 vod vos via R-help пишет: > How to split a overflow slide content to slides automatically using > revealjs or other html representation creator in rmarkdown If you don't get an answer here, try . -- Best regards,

[R] How to split a overflow slide content to slides automatically using revealjs in rmarkdown?

2023-02-08 Thread vod vos via R-help
Hi, How to split a overflow slide content to slides automatically using revealjs or other html representation creator in rmarkdown, the effects like beamer "allow frame breaker" option with subsection number added? And the main section number (slide title) will not be increased? Thanks.

[R] How to split a overflow slide content to slides automatically using revealjs in rmarkdown?

2023-02-08 Thread vod vos via R-help
How to split a overflow slide content to slides automatically using revealjs or other html representation creator in rmarkdown, the effects like beamer "allow frame breaker" option with subsection number added? And the main section number (slide title) will not be increased? Thanks.

Re: [R] How to calculate the derivatives at each data point?

2023-01-31 Thread konstantinos christodoulou
> -Original Message- > > From: R-help On Behalf Of konstantinos > > christodoulou > > Sent: Tuesday, January 31, 2023 10:16 AM > > To: r-help mailing list > > Subject: [R] How to calculate the derivatives at each data point? > > > > Hi eve

Re: [R] How to calculate the derivatives at each data point?

2023-01-31 Thread konstantinos christodoulou
Hi Ivan! Thank you for your valuable insights! I look forward to learning more about numerical differentiation and about this subject. The pracma package and the fornberg() function is impressive. I got some really good approximations on my derivatives. Thank you! Kostas On Tue, Jan 31, 2023

Re: [R] How to calculate the derivatives at each data point?

2023-01-31 Thread Ivan Krylov
В Tue, 31 Jan 2023 11:16:21 +0200 konstantinos christodoulou пишет: > How can I find the derivatives of the atmospheric measurements at each > altitude? Welcome to the world of finite difference methods! If you can find a good textbook on them, it may be a good idea to skim it.

Re: [R] How to calculate the derivatives at each data point?

2023-01-31 Thread PIKAL Petr
3 10:16 AM > To: r-help mailing list > Subject: [R] How to calculate the derivatives at each data point? > > Hi everyone, > > I have a vector with atmospheric measurements (x-axis) that is > obtained/calculated at different altitudes (y-axis). The altitude is uniformly > di

[R] How to calculate the derivatives at each data point?

2023-01-31 Thread konstantinos christodoulou
Hi everyone, I have a vector with atmospheric measurements (x-axis) that is obtained/calculated at different altitudes (y-axis). The altitude is uniformly distributed every 7 meters. For example my dataframe is: df <- dataframe( *altitude* = c(1005, 1012, 1019, 1026, 1033, 1040, 1047, 1054, 1061,

Re: [R] How to access source code

2022-12-08 Thread Uwe Ligges
be a useful fast track to getting an overview of what is going on. Martin Morgan From: R-help on behalf of Ivan Krylov Date: Thursday, December 8, 2022 at 11:23 AM To: Christofer Bogaso Cc: r-help Subject: Re: [R] How to access source code � Thu, 8 Dec 2022 20:56:12 +0530 Christofer Bogaso

Re: [R] How to access source code

2022-12-08 Thread Martin Morgan
Cc: r-help Subject: Re: [R] How to access source code � Thu, 8 Dec 2022 20:56:12 +0530 Christofer Bogaso �: > > showMethods(LGD) > > Function: LGD (package GCPM) > > this="GCPM" Almost there! Try getMethod(LGD, signature = 'GCPM'). Not sure if this is going to

Re: [R] How to access source code

2022-12-08 Thread Ivan Krylov
В Thu, 8 Dec 2022 20:56:12 +0530 Christofer Bogaso пишет: > > showMethods(LGD) > > Function: LGD (package GCPM) > > this="GCPM" Almost there! Try getMethod(LGD, signature = 'GCPM'). Not sure if this is going to work as written, but if you need to see an S4 method definition, getMethod is

[R] How to access source code

2022-12-08 Thread Christofer Bogaso
Hi, I am trying to access the source code from package GCPM, where I am interested to look into the source code of one function called LGD. So I did below > LGD standardGeneric for "LGD" defined from package "GCPM" function (this) standardGeneric("LGD") Methods may be defined for

Re: [R] How to draw chemical structures with R?

2022-12-05 Thread Luigi Marongiu
Thanks, I will. On Tue, Dec 6, 2022 at 7:21 AM Jeff Newmiller wrote: > > I have never seen this package mentioned on this list. You should contact the > package maintainer. > > On December 5, 2022 9:59:34 PM PST, Luigi Marongiu > wrote: > >Thanks for the tip! I think the problem is all

Re: [R] How to draw chemical structures with R?

2022-12-05 Thread Jeff Newmiller
I have never seen this package mentioned on this list. You should contact the package maintainer. On December 5, 2022 9:59:34 PM PST, Luigi Marongiu wrote: >Thanks for the tip! I think the problem is all Java-based, the SMILES >structure comes from the example in the template, it should work.

Re: [R] How to draw chemical structures with R?

2022-12-05 Thread Luigi Marongiu
Thanks for the tip! I think the problem is all Java-based, the SMILES structure comes from the example in the template, it should work. There is something missing in the execution... On Tue, Dec 6, 2022 at 3:12 AM LMH wrote: > > Just my opinion, but I think you would be better off to draw the

Re: [R] How to draw chemical structures with R?

2022-12-05 Thread LMH
Just my opinion, but I think you would be better off to draw the structures using a drawing program like MarvinSketch (free, java based) and save the structure as a SMILES file, MOL file, or SDF. You should be able to import any of those into R. A program like MarvinSketch will check the

[R] How to draw chemical structures with R?

2022-12-05 Thread Luigi Marongiu
Hello,' I have seen from this link https://cran.r-project.org/web/packages/rcdk/vignettes/using-rcdk.html that there is a way to draw chemical structures using R via rcdk package. I tried to draw a simple structure but I got an error. What is it missing? What is the correct syntax? Thanks ```

Re: [R] How to make a deep copy of a list?

2022-11-12 Thread Ivan Krylov
В Sat, 12 Nov 2022 20:04:57 + Giovanni Petris пишет: > The problem is that the C code modifies elements of the list so that, > after the R function returns, I end up with a modified version of the > list argument. I believe passing to the function a deep copy of the > list argument would

  1   2   3   4   5   6   7   8   9   10   >