Re: [R] Your data set manipulations

2024-09-16 Thread Thomas . Rose
Dear Francesca, As Rolf already pointed out, please provide more comprehensible information. As shot into the blue, excluding the NAs when calculating the mean might help: > mean(c(3, 5, NA)) [1] NA > mean(c(3, 5, NA), na.rm = TRUE) [1] 4 Cheers, Thomas Von:

Re: [R] Reg: Help regarding ggplot2

2023-05-02 Thread Thomas . Rose
Dear Upananda, I see a misplaced bracket in your code, and there is no need in aes() to call the dataframe explicitly. Does this work? ggplot(data = data_vol3, aes(x = index, y = usa)) + geom_line() Best wishes, Thomas Von: R-help im Auftrag von Upananda Pan