Re: [R-es] Gráfica con dos ejes
Hola Marco, aquí hay dos aproximaciones al problema con dos de las librerías más usadas para hacer gráficos (además de base): 1. Con la librería latticeExtra https://www.r-graph-gallery.com/145-two-different-y-axis-on-the-same-plot.html 2. Con la librería ggplot: https://www.r-graph-gallery.com/line-chart-dual-Y-axis-ggplot2.html Debo decir, eso sí, que este tipo de gráficos no se recomienda pues puede conducir a conclusiones erradas, en fin ... Suerte !!! Eric. pd. si compartes los datos, una parte al menos, se podría escribir algo que te sirva más directamente. On Fri, 9 Jul 2021 03:55:41 + "Marco Aurelio Gonzalez Tagle (FCF)" wrote: > Muy buenos días a todos! > > Podrían ayudarme con mi siguiente problema? > Estoy tratando de preparar en R una gráfica con dos ejes en Y. > > El primer eje contiene el número de incendios ocurridos en un periodo > de tiempo 1998 a 2021 (Barplot), El segundo eje contiene la > superficie afectada (line). Algo parecido a la siguiente gráfica > > [cid:6E223ADDD0F44EC489B007E3D3DB69F7] > > Alguien podría apoyarme para conseguir realizar una gráfica parecida > a la de arriba, Saludos, Marco > > > ___ R-help-es mailing list R-help-es@r-project.org https://stat.ethz.ch/mailman/listinfo/r-help-es
[R-es] Gráfica con dos ejes
Muy buenos días a todos! Podrían ayudarme con mi siguiente problema? Estoy tratando de preparar en R una gráfica con dos ejes en Y. El primer eje contiene el número de incendios ocurridos en un periodo de tiempo 1998 a 2021 (Barplot), El segundo eje contiene la superficie afectada (line). Algo parecido a la siguiente gráfica [cid:6E223ADDD0F44EC489B007E3D3DB69F7] Alguien podría apoyarme para conseguir realizar una gráfica parecida a la de arriba, Saludos, Marco Inc-Sup.csv Description: Inc-Sup.csv ___ R-help-es mailing list R-help-es@r-project.org https://stat.ethz.ch/mailman/listinfo/r-help-es
Re: [R] MAC version 10
Hello: https://cran.r-project.org/bin/macosx/ Download the R-4.1.0.pkg and install it as you would any macOS app. ~jeff Jeffrey M. Hunter Sr. DBA, Mathematics Programmer, Author jhun...@idevelopment.info A computer without a Microsoft operating system is like a dog without bricks tied to its head. God rot Windows and all its ugly, clunky, badly-designed horror. > On Jul 8, 2021, at 2:19 PM, Farrah T wrote: > > Hello, > > I have Mac Version 10 Catalina and I would like to download R on this device > for my summer class. I have difficulty to find a right option when I go to > the website. May you please kindly share the step by step guidance with me. > The screenshot with be great. I downloaded few zip files and yet didn’t know > how to follow after that step neither. Looking forward to hearing from your > side. > > Best, > Fararh > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
Re: [R] MAC version 10
If the below is not helpful, post on r-sig-mac rather than here. You should be able to download and install a precompiled binary (no zip files to unzip and compile) from here: https://cran.r-project.org/ 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 Thu, Jul 8, 2021 at 11:19 AM Farrah T wrote: > > Hello, > > I have Mac Version 10 Catalina and I would like to download R on this device > for my summer class. I have difficulty to find a right option when I go to > the website. May you please kindly share the step by step guidance with me. > The screenshot with be great. I downloaded few zip files and yet didn’t know > how to follow after that step neither. Looking forward to hearing from your > side. > > Best, > Fararh > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
Re: [R] MAC version 10
What web site did you go to? Have you tried: https://cran.r-project.org/bin/macosx/ Then click on "R-4.1.0.pkg". That should download as normal. Then double click on that, etc. Spencer Graves On 7/6/21 3:52 PM, Farrah T wrote: Hello, I have Mac Version 10 Catalina and I would like to download R on this device for my summer class. I have difficulty to find a right option when I go to the website. May you please kindly share the step by step guidance with me. The screenshot with be great. I downloaded few zip files and yet didn’t know how to follow after that step neither. Looking forward to hearing from your side. Best, Fararh __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
[R] MAC version 10
Hello, I have Mac Version 10 Catalina and I would like to download R on this device for my summer class. I have difficulty to find a right option when I go to the website. May you please kindly share the step by step guidance with me. The screenshot with be great. I downloaded few zip files and yet didn’t know how to follow after that step neither. Looking forward to hearing from your side. Best, Fararh __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
Re: [R] problem for strsplit function
Hello all, I have to learning R from beginning, since my group will get rid of SAS. So, my question may not be very clear for professional R user. I always dealing with column in data frame, not data vector. Many thanks to Greg's example. it is very helpful. one more question, how can I know if the function is for column manipulations or for vector? Thank you, Kai On Wednesday, July 7, 2021, 10:36:53 PM PDT, Greg Minshall wrote: > sub( "\\.[^.]*$", "", fname ) fwiw, i almost always use '[.]' in preference to '.', as it seems to be more likely to get through the various levels of quoting in different contexts. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
Re: [R] How to estimate the parameter for many variable?
Hello, Also, in the code x <- data.matrix(Ozone_weekly) [...omited...] for(i in 1:nrow(x)) + { for(j in 1:ncol(x)) + {x[i,j] = 1}} not only you rewrite x but the double for loop is equivalent to x[] <- 1 courtesy R's vectorised behavior. (The square parenthesis are needed to keep the dimensions, the matrix form.) And, I'm not sure but isn't head(gev.fit)[1:4] equivalent to head(gev.fit, n = 4) ? Like Jim says, we need more information, can you post Ozone_weekly2 and the code that produced gev.fit? But in the mean time you can revise your code. Hope this helps, Rui Barradas Às 11:08 de 08/07/21, Jim Lemon escreveu: Hi Siti, I think we need a bit more information to respond helpfully. I have no idea what "Ozone_weekly2" is and Google is also ignorant. "gev.fit" is also unknown. The name suggests that it is the output of some regression or similar. What function produced it, and from what library? "ti" is known as you have defined it. However, I don't know what you want to do with it. Finally, as this is a text mailing list, we don't get any highlighting, so the text to which you refer cannot be identified. I can see you have a problem, but cannot offer any help right now. Jim On Thu, Jul 8, 2021 at 12:06 AM SITI AISYAH ZAKARIA wrote: Dear all, Can I ask something about programming in marginal distribution for spatial extreme? I really stuck on my coding to obtain the parameter estimation for univariate or marginal distribution for new model in spatial extreme. I want to run my data in order to get the parameter estimation value for 25 stations in one table. But I really didn't get the idea of the correct coding. Here I attached my coding x <- data.matrix(Ozone_weekly2) x head(gev.fit)[1:4] ti = matrix(ncol = 3, nrow = 888) ti[,1] = seq(1, 888, 1) ti[,2]=sin(2*pi*(ti[,1])/52) ti[,3]=cos(2*pi*(ti[,1])/52) for(i in 1:nrow(x)) + { for(j in 1:ncol(x)) + {x[i,j] = 1}} My problem is highlighted in red color. And if are not hesitate to all. Can someone share with me the procedure, how can I map my data using spatial extreme. For example: After I finish my marginal distribution, what the next procedure. It is I need to get the spatial independent value. That's all Thank you. -- "..Millions of trees are used to make papers, only to be thrown away after a couple of minutes reading from them. Our planet is at stake. Please be considerate. THINK TWICE BEFORE PRINTING THIS.." DISCLAIMER: This email \ and any files transmitte...{{dropped:24}} __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
Re: [R] How to estimate the parameter for many variable?
Hi Siti, I think we need a bit more information to respond helpfully. I have no idea what "Ozone_weekly2" is and Google is also ignorant. "gev.fit" is also unknown. The name suggests that it is the output of some regression or similar. What function produced it, and from what library? "ti" is known as you have defined it. However, I don't know what you want to do with it. Finally, as this is a text mailing list, we don't get any highlighting, so the text to which you refer cannot be identified. I can see you have a problem, but cannot offer any help right now. Jim On Thu, Jul 8, 2021 at 12:06 AM SITI AISYAH ZAKARIA wrote: > > Dear all, > > Can I ask something about programming in marginal distribution for spatial > extreme? > I really stuck on my coding to obtain the parameter estimation for > univariate or marginal distribution for new model in spatial extreme. > > I want to run my data in order to get the parameter estimation value for 25 > stations in one table. But I really didn't get the idea of the correct > coding. Here I attached my coding > > x <- data.matrix(Ozone_weekly2) > x > head(gev.fit)[1:4] > ti = matrix(ncol = 3, nrow = 888) > ti[,1] = seq(1, 888, 1) > ti[,2]=sin(2*pi*(ti[,1])/52) > ti[,3]=cos(2*pi*(ti[,1])/52) > for(i in 1:nrow(x)) > + { for(j in 1:ncol(x)) > + {x[i,j] = 1}} > > My problem is highlighted in red color. > And if are not hesitate to all. Can someone share with me the procedure, > how can I map my data using spatial extreme. > For example: > After I finish my marginal distribution, what the next procedure. It is I > need to get the spatial independent value. > > That's all > Thank you. > > -- > > > > > > "..Millions of trees are used to make papers, only to be thrown away > after a couple of minutes reading from them. Our planet is at stake. Please > be considerate. THINK TWICE BEFORE PRINTING THIS.." > > DISCLAIMER: This email \ and any files transmitte...{{dropped:24}} > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.