[R] how to generate this kind of graph

2020-07-22 Thread array chip via R-help
Hello everyone, I saw this scatterplots from a paper and thought it looked very nice: https://drive.google.com/file/d/1V7F1gq-J_GIFDOrJs00hwGyXUqCZ_xwa/view?usp=sharing It was similar to stripchart() with 'jitter' method, but it has a special pattern of aligning points which made it look

Re: [R] How to generate this type of scatter plots in R

2020-07-22 Thread Jim Lemon
Hi John, Perhaps "dendroPlot" in the plotrix package? JIm On Thu, Jul 23, 2020 at 11:00 AM array chip via R-help wrote: > > > Hello everyone, > > I saw this scatterplots from a paper and thought it looked very nice: > >

Re: [R] how to view and edit this RData file

2020-07-22 Thread Richard O'Keefe
> load("WVS.RData", verbose=TRUE) Loading objects: final.ord > str(final.ord) num [1:82992, 1:74] 2 2 1 2 2 1 2 1 2 2 ... - attr(*, "dimnames")=List of 2 ..$ : NULL ..$ : chr [1:74] "v12" "v13" "v14" "v15" ... When using load() with unfamiliar data, verbose=TRUE is your friend. Note that

Re: [R] Reading help functions

2020-07-22 Thread Rasmus Liland
On 2020-07-22 19:42 -0400, Duncan Murdoch wrote: > On 22/07/2020 1:20 p.m., Pedro páramo wrote: > > Hi all, > > > > I am trying all time to use ?? help > > function but most of the time it > > cost me a lot to understand what > > they are saying, explaining, there > > is some manual to step

Re: [R] how to view and edit this RData file

2020-07-22 Thread Rasmus Liland
On 2020-07-22 16:38 -0700, David Winsemius wrote: > On 7/22/20 12:35 AM, Jason Levy wrote: > > Dear R Scholars > > > > Many R users have successfully loaded and used the attached WVS RDATA file > > into my R program. I would just would like help viewing, editing etc. > > > > I wanted to include

[R] How to generate this type of scatter plots in R

2020-07-22 Thread array chip via R-help
Hello everyone, I saw this scatterplots from a paper and thought it looked very nice: https://drive.google.com/file/d/1V7F1gq-J_GIFDOrJs00hwGyXUqCZ_xwa/view?usp=sharing It was similar to stripchart() with 'jitter' method, but it has a special pattern of aligning points which made it look

Re: [R] Looping thorugh dataframe

2020-07-22 Thread William Dunlap via R-help
> library(dplyr, warn.conflicts=FALSE) > d <- data.frame(Company=c("MATH","IFUL","SSI","MATH","MATH","SSI"), > Turnover=c(2,3,5,7,9,11)) > d %>% group_by(Company) %>% summarize(Count=n(), MeanTurnover=mean(Turnover), > TotalTurnover=sum(Turnover)) `summarise()` ungrouping output (override with

Re: [R] Error in Rose Method (class balancing)

2020-07-22 Thread Rasmus Liland
On 2020-07-22 16:08 -0700, David Winsemius wrote: | On 7/22/20 3:43 PM, Neha gupta wrote: | | Hello, | | | | I get the following error when I use | | the ROSE class balancing method but | | when I use other methods like SMOTE, | | up, down, I do not get any error | | message. | | | |

Re: [R] Looping thorugh dataframe

2020-07-22 Thread Sarah Goslee
Hi, Your sample code suggests that you don't yet understand how R works, and might benefit from a tutorial or two. However, your verbal description of what you want is quite straightforward. Here's a R-style way to count the number of times each company appears, and to get the mean value of

Re: [R] Reading help functions

2020-07-22 Thread Duncan Murdoch
On 22/07/2020 1:20 p.m., Pedro páramo wrote: Hi all, I am trying all time to use ?? help function but most of the time it cost me a lot to understand what they are saying, explaining, there is some manual to step by step how to interpret help guides in R. I hope you can understand me because

Re: [R] how to view and edit this RData file

2020-07-22 Thread David Winsemius
On 7/22/20 12:35 AM, Jason Levy wrote: Dear R Scholars Many R users have successfully loaded and used the attached WVS RDATA file into my R program. I would just would like help viewing, editing etc. I wanted to include the actual RData file (which was not attached previously) I can

Re: [R] viewing, editing and saving an RDATA file

2020-07-22 Thread Bert Gunter
Inline 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 Wed, Jul 22, 2020 at 2:29 PM Robert Baer wrote: > You may misunderstand how RData files work. Note

[R] Compositional Data Analysis

2020-07-22 Thread Tim Locke
Hi All, I am currently working on a project examining the health effects of physical activity using a compositional data (CoDa) approach. I am using a linear regression to measure the effect of physical activity. What I want to do is predict an outcome, e.g. body mass index, based on the mean

Re: [R] Looping thorugh dataframe

2020-07-22 Thread e-mail ma015k3113 via R-help
Bert, thanks for responding to my email. I do realise that newbie's like my can expect curt answers but not to worry. I am definitely learning 'R' and what I posted are also statements from R. The statements run perfectly well but don't do what I want them to do. My mistake I have posted sample

[R] Reading help functions

2020-07-22 Thread Pedro páramo
Hi all, I am trying all time to use ?? help function but most of the time it cost me a lot to understand what they are saying, explaining, there is some manual to step by step how to interpret help guides in R. I hope you can understand me because of my english its not the best also. Many

[R] Logo or text in a plot

2020-07-22 Thread Pedro páramo
Hi all, I want to add an image on my plot or a text if not possible getSymbols("APPL", from="2020-01-01") getSymbols("",from="2020-01-01") library(grid) ret <- na.omit(CalculateReturns(cbind(Cl(AAPL), Cl( # same as Cl(AAPL)/lag(Cl(AAPL)) - 1)*100 chart.CumReturns(ret,wealth.index =

[R] Dataframe with different lengths

2020-07-22 Thread Pedro páramo
Hi all, I am trying to draw a plot with cumsum values but each "line" has different lengths Ilibrary(dplyr) library(tibble) library(lubridate) library(PerformanceAnalytics) library(quantmod) library(ggplot2) getSymbols('TSLA') I want to create the variables: a<-cumsum(dailyReturn(TSLA, subset

Re: [R] Error in Rose Method (class balancing)

2020-07-22 Thread David Winsemius
On 7/22/20 3:43 PM, Neha gupta wrote: Hello, I get the following error when I use the ROSE class balancing method but when I use other methods like SMOTE, up, down, I do not get any error message. Something is wrong; all the ROC metric values are missing: ROC Sens Spec Min. : NA Min. :

[R] Error in Rose Method (class balancing)

2020-07-22 Thread Neha gupta
Hello, I get the following error when I use the ROSE class balancing method but when I use other methods like SMOTE, up, down, I do not get any error message. Something is wrong; all the ROC metric values are missing: ROC Sens Spec Min. : NA Min. : NA Min. : NA 1st Qu.: NA 1st Qu.: NA 1st

Re: [R] viewing, editing and saving an RDATA file

2020-07-22 Thread Robert Baer
You may misunderstand how RData files work.  Note that RData files are not necessarily JUST a single variable unless they were explicitly written to store a single variable only. If you save a single variable (a dataframe, for example) named 'mydata' with save(mydata, file =

Re: [R] viewing, editing and saving an RDATA file

2020-07-22 Thread David Winsemius
On 7/21/20 9:11 PM, Jason Levy wrote: Dear R Scholars Many R users have successfully loaded and used the attached WVS RDATA file into my R program. You appear to have made a common mistake in assuming that attachments of any sort can be processed by the Rhelp mail-server. Only attachments

Re: [R-es] Actualizar la versión de glue

2020-07-22 Thread Jorge I Velez
Lissette, La forma más fácil es verificar qué versión tienes es haciendo R> packageVersion("glue") ## [1] '1.4.1' Para actualizarla a la _última_ versión, debes hacer R> install.packages('glue') De esta forma siempre vas a instalar la versión más reciente disponible en

Re: [R] A Question about MLE in R

2020-07-22 Thread J C Nash
SANN is almost NEVER the tool to use. I've given up trying to get it removed from optim(), and will soon give up on telling folk not to use it. JN On 2020-07-22 3:06 a.m., Zixuan Qi wrote: > Hi, > > I encounter a problem. I use optim() function in R to estimate likelihood > function and the

Re: [R] [FORGED] Testing wether my dataset follows a poisson distribution with R

2020-07-22 Thread Rolf Turner
On 22/07/20 2:26 pm, Paul Bernal wrote: Dear friends, I have a sample dataset, which is basically the number of transits through a particular waterway, and is on a daily basis. MyDat <- dataset$DailyTransits What I´d like to do is to test whether MyDat follows a poisson distribution or

Re: [R] viewing, editing and saving an RDATA file

2020-07-22 Thread Jim Lemon
Hi Jason, I assume that you actually have "WVS.RData" in your working directory when you try to load it. Otherwise you will get an error message. If you don't get an error message when you do this: load("WVS.RData") there will be a new object in your workspace. So if you want to see what the

Re: [R] how to view and edit this RData file

2020-07-22 Thread Martin Maechler
> Ivan Krylov n Wed, 22 Jul 2020 12:42:48 +0300 writes: > On Tue, 21 Jul 2020 21:35:49 -1000 Jason Levy wrote: >> I would like help on how to view, edit and save this >> 2.461 MB RData file. > Check out the envir= argument to load() and save() if you > want to isolate

Re: [R] A Question about MLE in R

2020-07-22 Thread peter dalgaard
Simulated annealing is a probabilistic method and will do things like that. You should probably read an introduction to the method, e.g. the Wikipedia page. Not too unlikely, you really want to use one of the other methods in optim() (or better still optimr from the optimx package). (I take

Re: [R] how to view and edit this RData file

2020-07-22 Thread Ivan Krylov
On Tue, 21 Jul 2020 21:35:49 -1000 Jason Levy wrote: > I would like help on how to view, edit and save this 2.461 MB RData > file. Check out the envir= argument to load() and save() if you want to isolate the loaded data from the rest of the session. For an example: # create an environment to

Re: [R] how to view and edit this RData file

2020-07-22 Thread Micha Silver
On 22/07/2020 10:35, Jason Levy wrote: Dear R Scholars Many R users have successfully loaded and used the attached WVS RDATA file into my R program. I would just would like help viewing, editing etc. I wanted to include the actual RData file (which was not attached previously) I can

[R] how to view and edit this RData file

2020-07-22 Thread Jason Levy
Dear R Scholars Many R users have successfully loaded and used the attached WVS RDATA file into my R program. I would just would like help viewing, editing etc. I wanted to include the actual RData file (which was not attached previously) I can successfully load the RData file:

[R] A Question about MLE in R

2020-07-22 Thread Zixuan Qi
Hi, I encounter a problem. I use optim() function in R to estimate likelihood function and the method is SANN in the optim function. out <- optim(parm,logLik,method='SANN',hessian=T,control=list(maxit=500)) However, I find that each time I run the program, I will get different values of

[R] viewing, editing and saving an RDATA file

2020-07-22 Thread Jason Levy
Dear R Scholars Many R users have successfully loaded and used the attached WVS RDATA file into my R program. I would just would like help viewing, editing etc. It is only one line of code to load in. *load('WVS.RData')* I would like help on how to view, edit and save this 2.461 MB RData file.

[R-es] (Fwd) Re: Re: Evitar posibles conflictos entre librerí as

2020-07-22 Thread Guillermo.Vinue
Estimado Javier, Gracias por la respuesta. Aunque he tratado de utilizar los imports y la carga de paquetes de diferentes formas, no he conseguido de momento evitar el error. Al final, para el objetivo de crear un login estoy utilizando el paquete shinyauthr,

[R] Question about citing R packages in an academic paper

2020-07-22 Thread Dr. Mehdi Dadkhah
Hi, I hope you are doing well! I have a question. I and my colleagues wrote a paper by using R language and its packages. We also used some tutorials. We have words count limitation for our paper. In early version of paper, I cited all packages in the reference list of paper (my paper will be