I've done a little snooping around the R Gallery Site (http://addictedtor.free.fr/graphiques/) and the "Statistics with R" site (http://zoonek2.free.fr/UNIX/48_R/all.html), but I can't seem to find what I'm looking for. Here is the type of plot I would like to draw: (1) 2-D three axis plot where each axis is separated by 120-degrees (would be great if the number of axis was configurable) (2) Would like the value at the origin of the axis to be configurable, and then have each axis to be increasing equally out from the origin, e.g. have the origin have a value of 0.5 and each axis increase from there (3) Would then like to be able to lay concentrically increasing circles over the axis so that they intersect each axis (4) Data values would only lye on the axis. I would like to put together this plot to show how far each variable is from the target variable, so I'm thinking this would be a target plot where the value of the target would be configurable. (I guess normalization would have similar result, but I would like to show the actual values.) I guess the result would look kind of like a dart board or something similar. Thank you for any insights that can be provided, especially if something like this already exist. [[alternative HTML version deleted]]
Jason Rupert wrote:> I've done a little snooping around the R Gallery Site (http://addictedtor.free.fr/graphiques/) and the "Statistics with R" site (http://zoonek2.free.fr/UNIX/48_R/all.html), but I can't seem to find what I'm looking for. > > Here is the type of plot I would like to draw: > (1) 2-D three axis plot where each axis is separated by 120-degrees (would be great if the number of axis was configurable) > (2) Would like the value at the origin of the axis to be configurable, and then have each axis to be increasing equally out from the origin, e.g. have the origin have a value of 0.5 and each axis increase from there > (3) Would then like to be able to lay concentrically increasing circles over the axis so that they intersect each axis > (4) Data values would only lye on the axis. > > I would like to put together this plot to show how far each variable is from the target variable, so I'm thinking this would be a target plot where the value of the target would be configurable. (I guess normalization would have similar result, but I would like to show the actual values.) > > I guess the result would look kind of like a dart board or something similar. > > Thank you for any insights that can be provided, especially if something like this already exist. >Hi Jason, Take a look at radial.plot in the plotrix package. Jim
I had a bit of problems with my email, so if any one responded to this I may have not received it. Is there any chance you can repost any ideas you might have? Right now I am looking at the plotrix package, but I have not been able to put together what I'm looking for. Thank you again for your feedback and insights. --- On Tue, 2/3/09, Jason Rupert <jasonkrupert@yahoo.com> wrote: From: Jason Rupert <jasonkrupert@yahoo.com> Subject: [R] Target Plot? To: r-help@r-project.org Date: Tuesday, February 3, 2009, 7:00 PM I've done a little snooping around the R Gallery Site (http://addictedtor.free.fr/graphiques/) and the "Statistics with R" site (http://zoonek2.free.fr/UNIX/48_R/all.html), but I can't seem to find what I'm looking for. Here is the type of plot I would like to draw: (1) 2-D three axis plot where each axis is separated by 120-degrees (would be great if the number of axis was configurable) (2) Would like the value at the origin of the axis to be configurable, and then have each axis to be increasing equally out from the origin, e.g. have the origin have a value of 0.5 and each axis increase from there (3) Would then like to be able to lay concentrically increasing circles over the axis so that they intersect each axis (4) Data values would only lye on the axis. I would like to put together this plot to show how far each variable is from the target variable, so I'm thinking this would be a target plot where the value of the target would be configurable. (I guess normalization would have similar result, but I would like to show the actual values.) I guess the result would look kind of like a dart board or something similar. Thank you for any insights that can be provided, especially if something like this already exist. [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list 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]]
Thank you again for your response. Below is similar to what I ended up doing, i.e. example code: library(plotrix) ions<-c(3.2, 5.0, 2.0) ion.names<-c("Na","Ca","Mg") radial.plot(ions, labels=ion.names, rp.type="s", start=90*(3.14159/180), main="Dissolved ions in water", point.symbols=16, point.col="green", radial.lim=c(0,6), show.centroid=FALSE, cex=4) Now I will try to add on the label. Also, do you know how to make the radial rings "black" and a little thicker? A co-worker requested that the be made a little darker and easier to see. Thanks again. --- On Fri, 2/6/09, Jim Lemon <jim@bitwrit.com.au> wrote: From: Jim Lemon <jim@bitwrit.com.au> Subject: Re: [R] Target Plot? To: jasonkrupert@yahoo.com Date: Friday, February 6, 2009, 4:16 AM Jason Rupert wrote:> I had a bit of problems with my email, so if any one responded to this Imay have not received it. Is there any chance you can repost any ideas you might have? Right now I am looking at the plotrix package, but I have not been able to put together what I'm looking for. Hi Jason, I sent a brief note to check radial.plot in the plotrix package, but you may have already found this. Jim [[alternative HTML version deleted]]
Jason Rupert <jasonkrupert <at> yahoo.com> writes: ?> Also, do you know how to make the radial rings "black" and a little thicker??A co-worker requested that the?be made a little darker and easier to see.> ?library(plotrix) ions<-c(3.2, 5.0, 2.0) ion.names<-c("Na","Ca","Mg") radial.plot(ions, labels=ion.names, rp.type="s", start=90*(3.14159/180), main="Dissolved ions in water", point.symbols=16, point.col="green", grid.col="black", radial.lim=c(0,6), show.centroid=FALSE, cex=4) text(1,2, "Sodium is hot") text(5,2, "Mg bitter")
Jason Rupert wrote:> ... > > Also, do you know how to make the radial rings "black" and a little > thicker? A co-worker requested that the be made a little darker and > easier to see. >Hi Jason, You can make the radial grid black with grid.col="black", but unfortunately there is no option for a thicker grid. You could add lwd=2 to line 170 if you just want a one-off. Jim