[R] dotchart and dotplot(lattice) plot with two/three conditioning variables

2024-09-04 Thread Anupam Tyagi
Hello, I am trying to make a Cleaveland Dotplot with two, if possible three, variables on the vertical axis. I was able to do it in Stata with two variables, Year and Population (see graph at the link: https://drive.google.com/file/d/1SiIfmmqk6IFa_OI5i26Ux1ZxkN2oek-o/view?usp=sharing ). I hope the

Re: [R] WDI package commands timing out and not working

2024-08-10 Thread Anupam Tyagi
Thanks, Ivan. I will fill out the support form at the World Bank. On Fri, 9 Aug 2024 at 22:16, Ivan Krylov wrote: > В Fri, 9 Aug 2024 20:25:51 +0530 > Anupam Tyagi пишет: > > > I am trying this in Bengaluru, India, using R-studio. I tried > > downloading a single variable.

Re: [R] WDI package commands timing out and not working

2024-08-09 Thread Anupam Tyagi
connection. You can check if the World Bank web API is currently serving the indicator(s) of interest by typing a URL of this form in your web browser: https://api.worldbank.org/v2/en/country/all/indicator/NY.GNS.ICTR.GN.ZS?format=json&date=:&per_page=32500&page=1 On Fri, 9 Aug

Re: [R] WDI package commands timing out and not working

2024-08-09 Thread Anupam Tyagi
I tried running the same command on my home computer, and it downloaded in less than 30 seconds. So, it seems the problem is with internet connection at work. Thanks, Ivan. On Fri, 9 Aug 2024 at 18:30, Anupam Tyagi wrote: > In the browser the link downloads immediately, in less than a second

Re: [R] WDI package commands timing out and not working

2024-08-09 Thread Anupam Tyagi
In the browser the link downloads immediately, in less than a second. I let the command run in R for five minutes, using R Studio. Nothing happened. On Fri, 9 Aug 2024 at 17:54, Ivan Krylov wrote: > В Thu, 8 Aug 2024 12:43:23 +0530 > Anupam Tyagi пишет: > > > In open.conn

[R] WDI package commands timing out and not working

2024-08-08 Thread Anupam Tyagi
There is some problem getting data with the WDI package. It gets data from World Development Indicators and other databases of The World Bank. I let the code run for several minutes and nothing happens. Sometimes it gives a time out message. I ran the same code last year and it worked. Any idea wha

Re: [R] Automatic Knot selection in Piecewise linear splines

2024-07-27 Thread Anupam Tyagi
gt; However segmented appears to be less efficient than earth (although with > reasonable running times), it does NOT work with multivariate responses > neither products between piecewise linear terms. > > kind regards, > Vito > > > > Il 16/07/2024 11:22, Martin Maechler

Re: [R] Automatic Knot selection in Piecewise linear splines

2024-07-16 Thread Anupam Tyagi
Thanks, Martin. This is very helpful. On Tue, 16 Jul 2024 at 14:52, Martin Maechler wrote: > >>>>> Anupam Tyagi > >>>>> on Tue, 9 Jul 2024 16:16:43 +0530 writes: > > > How can I do automatic knot selection while fitting piecewise linear &g

[R] Automatic Knot selection in Piecewise linear splines

2024-07-09 Thread Anupam Tyagi
How can I do automatic knot selection while fitting piecewise linear splines to two variables x and y? Which package to use to do it simply? I also want to visualize the splines (and the scatter plot) with a graph. Anupam [[alternative HTML version deleted]] _

Re: [R] Variable and value labels

2023-07-13 Thread Anupam Tyagi
the display > is graphed in that order. > > > > And as I answered another person, some graphing functions allow you to do > other kinds of labeling on top of the plot that may meet your needs. > > > > I may be the opposite of you as I did not use R much before 2003.

Re: [R] Variable and value labels

2023-07-12 Thread Anupam Tyagi
ten in R, you may see how it does something and take a part of the code > and use it yourself. > > > > -Original Message- > From: R-help On Behalf Of Anupam Tyagi > Sent: Tuesday, July 11, 2023 11:49 PM > To: r-help mailing list > Subject: [R] Variable and value la

Re: [R] Variable and value labels

2023-07-12 Thread Anupam Tyagi
ot;,"manual")) > mtcars > > # add a variable label via comment() > comment(mtcars$am) <- "Type of transmission" > > # extract all the variable labels > sapply(mtcars, comment) > > Best, > Wolfgang > > >-Original Message- > >From: R-hel

Re: [R] Variable and value labels

2023-07-12 Thread Anupam Tyagi
:33 pm Martin Maechler, wrote: > >>>>> Anupam Tyagi > >>>>> on Wed, 12 Jul 2023 09:18:55 +0530 writes: > > > Hello, > > > is there an easy way to do variable and value labels (for > > factor variables) in base-R, witho

Re: [R] Plotting factors in graph panel

2023-07-11 Thread Anupam Tyagi
Wonderful! This is great news. Thanks, Deepayan. On Wed, 12 Jul 2023 at 09:21, Deepayan Sarkar wrote: > > > On Wed, 12 Jul 2023 at 08:57, Anupam Tyagi wrote: > >> Thanks. >> I made a graph in Stata that is close to what I want in R. Stata graph is >> attached

[R] Variable and value labels

2023-07-11 Thread Anupam Tyagi
Hello, is there an easy way to do variable and value labels (for factor variables) in base-R, without using a package. If not, what is an easy and good way to do labels, using an add-on package. -- Anupam. [[alternative HTML version deleted]] ___

[R] Alternative to rggobi

2023-07-11 Thread Anupam Tyagi
Hello, since rggobi is not available, is there an alternative to rggobi? -- Anupam. [[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

Re: [R] Plotting factors in graph panel

2023-07-11 Thread Anupam Tyagi
t; ggplot(TrialData4, aes(x=Income, y=Percent, group=Measure)) + geom_point() > + > geom_line() + facet_wrap(~Measure) > > xyplot(Percent ~ Income | Measure, TrialData4, >type = "o", pch = 16, as.table = TRUE, grid = TRUE) > > So it is probably only matter of

Re: [R] Plotting factors in graph panel

2023-07-07 Thread Anupam Tyagi
; From: R-help On Behalf Of Deepayan Sarkar > > Sent: Thursday, July 6, 2023 3:06 PM > > To: Anupam Tyagi > > Cc: r-help@r-project.org > > Subject: Re: [R] Plotting factors in graph panel > > > > On Thu, 6 Jul 2023 at 15:21, Anupam Tyagi wrote: > > > &

Re: [R] Plotting factors in graph panel

2023-07-07 Thread Anupam Tyagi
. On Thu, 6 Jul 2023 at 18:35, Deepayan Sarkar wrote: > On Thu, 6 Jul 2023 at 15:21, Anupam Tyagi wrote: > > > > Btw, I think "lattice" graphics will provide a better solution than > > "ggplot", because it puts appropriate (space saving) markers on the axes

Re: [R] Plotting factors in graph panel

2023-07-06 Thread Anupam Tyagi
Btw, I think "lattice" graphics will provide a better solution than "ggplot", because it puts appropriate (space saving) markers on the axes and does axes labels well. However, I cannot figure out how to do it in "lattice". On Thu, 6 Jul 2023 at 15:11, Anupam Tyagi

Re: [R] Plotting factors in graph panel

2023-07-06 Thread Anupam Tyagi
None 3", "MF None 3", "MF None 3", "MF None 3", "MF None 3", "MF Equity 3", "MF Equity 3", "MF Equity 3", "MF Equity 3", "MF Equity 3", "MF Debt 3", "MF Debt 3", "MF Debt 3&q

Re: [R] Plotting factors in graph panel

2023-07-05 Thread Anupam Tyagi
ot;) > axis(1,at=1:5,labels=at_df$Income) > plot(at_df[,"MF_Equity"], > type="l",lwd=3,main="MF_Equity", > xlab="Income",ylab="%",xaxt="n") > axis(1,at=1:5,labels=at_df$Income) > plot(at_df[,"MF_Debt"], > type

Re: [R] Plotting factors in graph panel

2023-07-03 Thread Anupam Tyagi
Attached is another example plot, that is better than the earlier one. On Mon, 3 Jul 2023 at 15:21, Anupam Tyagi wrote: > I thought maybe I can share with you how the data looks in Excel, and an > example plot I found on the web that looks similar to what I want to plot. > These are at

Re: [R] Plotting factors in graph panel

2023-07-03 Thread Anupam Tyagi
Bank_Sasvings", > xlab="Income",ylab="%",xaxt="n") > axis(1,at=1:5,labels=at_df$Income) > plot(at_df[,"MF_Equity"], > type="l",lwd=3,main="MF_Equity", > xlab="Income",ylab="%",xaxt="n")

Re: [R] Plotting factors in graph panel

2023-06-28 Thread Anupam Tyagi
MF_Debt","MF_Hybrid"), > lty=1:4,lwd=3,col=1:4) > matplot(at_df[,c("Bank_None","Bank_Current","Bank_Savings")], > type="l",col=1:3,lty=1:4,lwd=3, > main="Percentages by Income and Bank type", > xlab="Income",y

[R] Plotting factors in graph panel

2023-06-28 Thread Anupam Tyagi
Hello, I want to plot the following kind of data (percentage of respondents from a survey) that varies by Income into many small *line* graphs in a panel of graphs. I want to omit "No Answer" categories. I want to see how each one of the categories (percentages), "None", " Equity", etc. varies by

Re: [R] loess plotting problem

2023-03-23 Thread Anupam Tyagi
Thanks, John. However, loess.smooth() is producing a very different curve compared to the one that results from applying predict() on a loess(). I am guessing they are using different defaults. Correct? On Thu, 23 Mar 2023 at 20:20, John Fox wrote: > Dear Anupam Tyagi, > > You didn&

[R] loess plotting problem

2023-03-23 Thread Anupam Tyagi
For some reason the following code is not plotting as I want it to. I want to plot a "loess" line plotted over a scatter plot. I get a jumble, with lines connecting all the points. I had a similar problem with "lowess". I solved that by dropping "NA" rows from the data columns. Please help. librar

[R] Error message after R-3.0.0 upgrade installation

2013-04-29 Thread Anupam Tyagi
R-3.0.0 prints an error message at startup. I uninstalled a previous version and installed this on Windows 8. Uninstall of previous version deleted all previously installed packages and I forgot to keep a list of them. How do I correct this error? " Error: requested primitive type is not consisten

Re: [R] help with kriging interpolation

2013-04-04 Thread Anupam Tyagi
You may want to look at a GIS related package in R. The soil sampling example makes sense. Anupam. On 4/4/13, Jeff Newmiller wrote: > I am no expert on kriging, but I do know that your question desperately > needs a reproducible example [1] that illustrates the actual problem you are > encounte

Re: [R] Deviance in Zero inflated models

2013-04-04 Thread Anupam Tyagi
The terminology could be specific to discipline. Check the Econometrics and Finance views. There isn't a health econometrics / statistics view yet which may have had this information, though you could look package "Design" and the author's web-page. Anirban Basu's and co-autors webpages at U Chicag

[R] non-parametric & semi-parametric methods for survey & longitudinal data

2013-04-04 Thread Anupam Tyagi
Is there a package that provides estimators/measures for non-parametric and semi-parametric methods for use with survey and longitudinal data? Is there a book that someone recommends that covers these topics with R examples? My web-searches have shown few directly relevant papers and very little co

[R] moderator has not updated email address: can not post to r-help

2013-04-03 Thread Anupam Tyagi
The list moderator has not updated email address from previous employer. i can not post to r-help. Is there a way around this? Anupam. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listin

[R] Fwd: Important: message being returned.

2013-04-03 Thread Anupam Tyagi
longer with the firm. For immediate assistance, please contact Reception at +1-212-478-. Sincerely, The D. E. Shaw Group -- 8< --- CUT HERE -- CUT HERE --- >8 -- From:Anupam Tyagi To: R help-list cc: Subject: [R] MAS (non-parametric

Re: [R] node stack overflow when extracting labels from a dendrogram

2013-04-03 Thread Anupam Tyagi
You are doing better: I had crashed a Unix workstation some years ago trying to read 3-d Table of about 50x50x150 in S+. You may just have to wait for computer to be better. Anupam. On Thu, Apr 4, 2013 at 9:23 AM, Oleksandr Moskalenko wrote: > It looks like R 3.0.0 has the same limitation as t

[R] MAS (non-parametric & semi-parametric) methods for survey & longitudinal data

2013-04-03 Thread Anupam Tyagi
Is there a package that provides equivalents of MASS package, especially non-parametric and semi-parametric methods for complex survey and longitudinal data? Is there a book that someone recommend that covers these topics with R (or Stata) examples? My web-searches have not resulted in much except