tag:blogger.com,1999:blog-1275149608391671670.post1799902229323852905..comments2023-09-28T06:13:40.704-04:00Comments on SAS and R: Example 9.38: dynamite plots, revisitedKen Kleinmanhttp://www.blogger.com/profile/09525118721291529157noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-1275149608391671670.post-3402323169560922072012-07-18T17:15:15.199-04:002012-07-18T17:15:15.199-04:00Maybe it should be
dynomiteplot = function(x,y) {...Maybe it should be<br /><br />dynomiteplot = function(x,y) { <br />library(vioplot)<br />vioplot(x[y==0], x[y==1])<br />}Ken Kleinmanhttps://www.blogger.com/profile/09525118721291529157noreply@blogger.comtag:blogger.com,1999:blog-1275149608391671670.post-20532017812398289982012-07-18T16:14:27.317-04:002012-07-18T16:14:27.317-04:00Perhaps we should insert the following lines of co...Perhaps we should insert the following lines of code into the example above:<br /><br />```r<br />warning("You are using a dynamite plot. There is probably a better plot for your data.")<br />warning("The author of this code does not endorse or condone the use of dynamite plots.")<br />warning("Use at your own risk.")<br />```<br /><br />As I recall, my involvement in this came from the angle of "how would you do something like this in lattice?". If this code encourages more people to use lattice (and move away from dynamite plots), then I'm happy I did it. If this code actually leads to more people making dynamite plots, I'm sorry.Dominican Republic 2024https://www.blogger.com/profile/07500805842903136651noreply@blogger.comtag:blogger.com,1999:blog-1275149608391671670.post-23813674580016956862012-07-18T11:32:14.416-04:002012-07-18T11:32:14.416-04:00I can't dispute your statement, and appreciate...I can't dispute your statement, and appreciate the smiley face. <br /><br />Let me also state publicly that both Ken and Randy shared these sentiments, but I still thought it useful to share the details of how one might solve this problem using lattice.<br /><br />I also want to make it clear that I've never generated or used one of these (though I have had biology collaborators who will use this type of graph, despite my best efforts). <br /><br />I don't sound defensive, do I? :-)Nick Hortonhttps://www.blogger.com/profile/00242216324355342047noreply@blogger.comtag:blogger.com,1999:blog-1275149608391671670.post-63976857568919068282012-07-18T11:27:29.606-04:002012-07-18T11:27:29.606-04:00I think this code qualifies as "aiding and ab...I think this code qualifies as "aiding and abetting" :-)Chris Andrewshttps://www.blogger.com/profile/08124050587254722665noreply@blogger.com