tag:blogger.com,1999:blog-1275149608391671670.post308675325979515288..comments2023-09-28T06:13:40.704-04:00Comments on SAS and R: Example 7.29: Bubble plots colored by a fourth variableKen Kleinmanhttp://www.blogger.com/profile/09525118721291529157noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-1275149608391671670.post-48943845337982590212016-12-08T22:00:04.907-05:002016-12-08T22:00:04.907-05:00The latter was a great suggestion, I was actually ...The latter was a great suggestion, I was actually able to embed it into a DESeq2 analysis co-opting the way that heatmaps are handle outlier issues and applying it to this. Thanks again. Justin S. A. Perryhttps://www.blogger.com/profile/09364018797083066092noreply@blogger.comtag:blogger.com,1999:blog-1275149608391671670.post-33770033902940023332016-12-08T09:34:09.641-05:002016-12-08T09:34:09.641-05:00Hi Justin--
My first thought would be to handle t...Hi Justin--<br /><br />My first thought would be to handle this on a case-by-case basis, meaning to arbitrarily remove the large values by hand before plotting the data.<br /><br />But it would be an interesting exercise to construct a function to detect range issues like this. You could also embed the R code in a function and include an option to trim the n largest values before plotting.Ken Kleinmanhttps://www.blogger.com/profile/09525118721291529157noreply@blogger.comtag:blogger.com,1999:blog-1275149608391671670.post-61549830663867520322016-12-07T17:31:03.733-05:002016-12-07T17:31:03.733-05:00This is great, thanks. Is there a way to restrict ...This is great, thanks. Is there a way to restrict the Z value to limit outliers? All of my points are "significant" but even after log transforming I still have one or two points that are much larger than the others, dwarfing the majority of bubbles. <br /><br />Thanks!Justin S. A. Perryhttps://www.blogger.com/profile/09364018797083066092noreply@blogger.comtag:blogger.com,1999:blog-1275149608391671670.post-59826918479131713672012-09-17T20:00:33.755-04:002012-09-17T20:00:33.755-04:00Please see example 8.5 (http://sas-and-r.blogspot....Please see example 8.5 (http://sas-and-r.blogspot.com/2010/09/example-85-bubble-plots-part-3.html) to see this done, folks. The sgplot prot procedure also does it trivially:<br /><br />data test;<br />do i = 1 to 40;<br /> cat = ceil(i/10);<br /> x = normal(0) - cat;<br /> y = x + normal(0);<br /> size = normal(0);<br /> output;<br /> end;<br />run;<br /><br />proc sgplot data = test;<br />bubble x=x y=y size=size / group=cat;<br />run;<br />quit;Ken Kleinmanhttps://www.blogger.com/profile/09525118721291529157noreply@blogger.comtag:blogger.com,1999:blog-1275149608391671670.post-6431492157128563802012-09-16T17:50:18.669-04:002012-09-16T17:50:18.669-04:00Agree with previous comment, the fourth variable b...Agree with previous comment, the fourth variable being limited to a cardinality of 2 in sas is hardly useful.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1275149608391671670.post-11136427482312167942012-07-15T15:28:13.226-04:002012-07-15T15:28:13.226-04:00How could one extend the example to coloring by a ...How could one extend the example to coloring by a fourth variable with more than two options? Is it also possible to combine it with adding bubble labels by a 5th variable?Anonymousnoreply@blogger.com