<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1356874791193614154</id><updated>2011-11-27T17:17:08.682-06:00</updated><category term='Stat530-hw2'/><category term='Web Maintenance'/><category term='Damn Thingy'/><title type='text'>R learning</title><subtitle type='html'>For interactive learning of R</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>20</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1356874791193614154.post-205218061479470488</id><published>2008-06-13T16:46:00.006-05:00</published><updated>2008-06-13T17:02:01.178-05:00</updated><title type='text'>How to run R codes from UltraEdit?</title><content type='html'>1) check the R Folder, you will see a file - Rscript.exe..  It's the one we need&lt;br /&gt;2) Execute UltraEdit, check the Table: Advanced\Tool Configuration; then follow the pics&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_mxV4y1GIk-Y/SFLsWe1LfkI/AAAAAAAADZg/lbOBw7otp98/s1600-h/snap0000017.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_mxV4y1GIk-Y/SFLsWe1LfkI/AAAAAAAADZg/lbOBw7otp98/s400/snap0000017.jpg" alt="" id="BLOGGER_PHOTO_ID_5211487589798477378" border="0" /&gt;&lt;/a&gt;3) Insert a new tool&lt;br /&gt;   # Command table&lt;br /&gt;   - named "R" or whatever you like&lt;br /&gt;   - apply :"Rscript.exe %p%n%e" in command line (%p for path; %n for file name; %e for file extension.  )&lt;br /&gt;   - key in the folder for Rscript.exe&lt;br /&gt;   - assign a icon for it&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mxV4y1GIk-Y/SFLsCO1LfhI/AAAAAAAADZI/y_UOWTHL6wY/s1600-h/snap0000018.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_mxV4y1GIk-Y/SFLsCO1LfhI/AAAAAAAADZI/y_UOWTHL6wY/s320/snap0000018.jpg" alt="" id="BLOGGER_PHOTO_ID_5211487241906126354" border="0" /&gt;&lt;/a&gt;    # Options Table&lt;br /&gt;   - it's a DOS program&lt;br /&gt;   - SAVE the file before it's executed&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mxV4y1GIk-Y/SFLsCO1LfiI/AAAAAAAADZQ/gIKoNS_3mCc/s1600-h/snap0000019.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_mxV4y1GIk-Y/SFLsCO1LfiI/AAAAAAAADZQ/gIKoNS_3mCc/s320/snap0000019.jpg" alt="" id="BLOGGER_PHOTO_ID_5211487241906126370" border="0" /&gt;&lt;/a&gt;    # Output Table&lt;br /&gt;    - Set up how to save/capture the output&lt;br /&gt;    - Here I set up for opening a new file for each run&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_mxV4y1GIk-Y/SFLsCe1LfjI/AAAAAAAADZY/EMznmP69_CQ/s1600-h/snap0000020.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_mxV4y1GIk-Y/SFLsCe1LfjI/AAAAAAAADZY/EMznmP69_CQ/s320/snap0000020.jpg" alt="" id="BLOGGER_PHOTO_ID_5211487246201093682" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The drawback:&lt;br /&gt;can't execute selected lines.. It executes whole file..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1356874791193614154-205218061479470488?l=r-learning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/205218061479470488/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1356874791193614154&amp;postID=205218061479470488' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/205218061479470488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/205218061479470488'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/2008/06/how-to-run-r-codes-from-ultraedit.html' title='How to run R codes from UltraEdit?'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_mxV4y1GIk-Y/SFLsWe1LfkI/AAAAAAAADZg/lbOBw7otp98/s72-c/snap0000017.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1356874791193614154.post-3084338612863763721</id><published>2008-06-13T15:32:00.003-05:00</published><updated>2008-06-13T15:37:22.714-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Maintenance'/><title type='text'>Reorganized the top table</title><content type='html'>Leave the original links here, since we have finished the course STAT578&lt;center&gt;&lt;table style="width: 671px; height: 133px;" border="0"&gt;&lt;tbody&gt;&lt;tr bgcolor="#252525"&gt;&lt;td style="text-align: center; font-weight: bold;" bgcolor="#943203" width="144"&gt;&lt;a href="http://www.stat.uiuc.edu/%7Epingma/stat530/stat530hw.html"&gt;STAT530 Homeworks&lt;/a&gt;&lt;/td&gt;&lt;br /&gt;&lt;td style="text-align: center;" width="144"&gt;&lt;a href="http://ky.hsiao.googlepages.com/"&gt;KY's Official Page&lt;/a&gt;&lt;/td&gt;&lt;br /&gt;&lt;td style="text-align: center;" width="144"&gt;&lt;a href="http://yachi.lin.googlepages.com/"&gt;Ya-Chi's Page&lt;/a&gt;&lt;/td&gt;&lt;br /&gt;&lt;td style="text-align: center; font-weight: bold; color: rgb(204, 0, 0);" bgcolor="#003955" width="180"&gt;&lt;a href="http://r-learning.blogspot.com/2007/09/guestbook.html"&gt;Guest Book&lt;/a&gt;&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;td style="text-align: center; font-weight: bold; color: rgb(204, 0, 0);" bgcolor="#000000" width="180"&gt;&lt;a href="http://whos.amung.us/show/b3f006y8"&gt;&lt;img alt="website stats" src="http://whos.amung.us/swidget/b3f006y8.gif" border="0" height="15" width="80" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td style="text-align: left;" colspan="4"&gt;&lt;a href="http://ky.hsiao.googlepages.com/stat530homework1"&gt;Homework #1 - 9/19&lt;/a&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td style="text-align: left;" colspan="4"&gt;&lt;a href="http://ky.hsiao.googlepages.com/stat530homework2aeizpl3"&gt;Homework #2 - 10/03&lt;/a&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td style="text-align: left;" colspan="4"&gt;Homework #3&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/center&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1356874791193614154-3084338612863763721?l=r-learning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/3084338612863763721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1356874791193614154&amp;postID=3084338612863763721' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/3084338612863763721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/3084338612863763721'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/2008/06/reorganized-top-table.html' title='Reorganized the top table'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1356874791193614154.post-7469088346624020534</id><published>2008-06-13T15:30:00.001-05:00</published><updated>2008-06-13T15:31:13.835-05:00</updated><title type='text'>First Thing First!</title><content type='html'>Let's start over~~~&lt;br /&gt;&lt;br /&gt;ls()&lt;br /&gt;rm(list=ls())&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1356874791193614154-7469088346624020534?l=r-learning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/7469088346624020534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1356874791193614154&amp;postID=7469088346624020534' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/7469088346624020534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/7469088346624020534'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/2008/06/first-thing-first.html' title='First Thing First!'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1356874791193614154.post-8408234670572702938</id><published>2008-06-13T15:27:00.002-05:00</published><updated>2008-06-13T15:30:21.839-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Damn Thingy'/><title type='text'>Bad Luck...</title><content type='html'>Recently lost all of my R codes in several projects due to a harddrive crash..&lt;br /&gt;So.. hardly to recall details about R codes without those original R files&lt;br /&gt;&lt;br /&gt;Damn it~~~&lt;br /&gt;&lt;br /&gt;Now I regret that I didn't maintain this site well..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1356874791193614154-8408234670572702938?l=r-learning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/8408234670572702938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1356874791193614154&amp;postID=8408234670572702938' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/8408234670572702938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/8408234670572702938'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/2008/06/bad-luck.html' title='Bad Luck...'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1356874791193614154.post-4889074759966235967</id><published>2008-01-25T15:48:00.000-06:00</published><updated>2008-01-27T06:28:56.574-06:00</updated><title type='text'>Test CSS codes</title><content type='html'>&lt;code class="R"&gt;&lt;br /&gt;TEST&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Since we need to list lots of R codes, I found a more convenient way (instead of the table) to demonstrate them from the following URL: &lt;a href="http://synnwang.blogspot.com/2006/11/blog.html"&gt;http://synnwang.blogspot.com/2006/11/blog.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thank the author for sharing the tips, codes as well as the pictures.&lt;br /&gt;&lt;br /&gt;ALL I have to do is to put the following section into the CSS template section,&lt;br /&gt;&lt;br /&gt;&lt;code class="html"&gt;code {&lt;br /&gt;display: block;&lt;br /&gt;font-family: 'Courier New';&lt;br /&gt;overflow: auto;&lt;br /&gt;border: 1px solid #ccc;&lt;br /&gt;padding: 1px 10px 10px 21px;&lt;br /&gt;max-height: 1200px;&lt;br /&gt;line-height: 1.2em;&lt;br /&gt;letter-spacing: 0px;&lt;br /&gt;margin: 5px 5px 0 15px;&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;code class="html"&gt;&lt;br /&gt;code.general{&lt;br /&gt;font-size: 9pt;&lt;br /&gt;color: #FFFFFF;&lt;br /&gt;background: #000 url(http://ky.hsiao.googlepages.com/sBar_code.gif) left top repeat-y;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;code.R{&lt;br /&gt;font-size: 9pt;&lt;br /&gt;color: #33CC00;&lt;br /&gt;background: #000 url(http://ky.hsiao.googlepages.com/sBar_R-code.gif) left top repeat-y;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;code.html{&lt;br /&gt;font-size: 9pt;&lt;br /&gt;color: #FFCC00;&lt;br /&gt;background: #000 url(http://ky.hsiao.googlepages.com/sBar_html.gif) left top repeat-y;&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then use &lt; code class="R"&amp;gt &lt;span style="color: rgb(204, 0, 0);"&gt;put R codes here&lt;/span&gt; &amp;lt/code&amp;gt to bracket your codes!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1356874791193614154-4889074759966235967?l=r-learning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/4889074759966235967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1356874791193614154&amp;postID=4889074759966235967' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/4889074759966235967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/4889074759966235967'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/2008/01/test-ccs-codes.html' title='Test CSS codes'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1356874791193614154.post-4136776810007501003</id><published>2007-09-26T22:14:00.001-05:00</published><updated>2007-10-03T11:43:41.972-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Stat530-hw2'/><title type='text'>The main dish is coming? Q1.1 ~ 4...  XD</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Q1.1) fold change:&lt;/span&gt;&lt;br /&gt;easy thought, easy Done! Sorting data by AVE(schz)/AVE(ctrl) and then pick up the first 200 genes. But how?&lt;br /&gt;&lt;table border="1" cellpadding="1" cellspacing="0" width="750"&gt;&lt;tbody&gt;&lt;tr valign="top"&gt;&lt;td width="400"&gt;&lt;span style="font-family:monospace;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;pre&gt;&gt;aa&lt;-array(round(rnorm(24),2),dim=c(6,4))&lt;span style="color: rgb(255, 0, 0);"&gt;  # randomly generate number based on normal dist&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;aa&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;      [,1]  [,2]  [,3]  [,4]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;[1,] -0.53 -1.26  0.87  1.92&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;[2,]  1.00  0.26 -0.40 -0.67&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;[3,]  1.39 -0.16 -0.11 -0.06&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;[4,] -0.51  0.35  0.28  0.07&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;[5,] -1.59  1.80  0.52 -0.63&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;[6,]  0.03 -0.60  0.61 -0.17&lt;/span&gt;&lt;br /&gt;&gt;order(aa[ ,2])                            # sort by column 2&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;order(aa[3, ])                            # sort by row 5&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;order(aa[3, ], decreasing=TRUE)           # this one is the default&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;order(aa[3, ], decreasing=FALSE)&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&gt;aa[&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;order(&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;aa[3,]&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;,]&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&gt;aa[&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;order(&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;aa[3,]&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;[1:2]&lt;/span&gt;,&lt;span style="color: rgb(51, 102, 255);"&gt;3:5&lt;/span&gt;]&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;             #aa[&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;order(&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;aa[3,]&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;[row]&lt;/span&gt;,&lt;span style="color: rgb(51, 102, 255);"&gt;col&lt;/span&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td width="350"&gt;As you can see the&lt;span style="font-weight: bold;"&gt; order() &lt;/span&gt;returning the order of row or column &lt;span style="color: rgb(0, 153, 0);"&gt;as a vector&lt;/span&gt;, and that's why it's a beautiful thing for us when selecting genes by kinda order.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1356874791193614154-4136776810007501003?l=r-learning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/4136776810007501003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1356874791193614154&amp;postID=4136776810007501003' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/4136776810007501003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/4136776810007501003'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/2007/09/main-dish-is-coming-q11-4-xd.html' title='The main dish is coming? Q1.1 ~ 4...  XD'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1356874791193614154.post-7347233188775280980</id><published>2007-09-26T16:56:00.001-05:00</published><updated>2007-10-03T05:08:44.773-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Stat530-hw2'/><title type='text'>Heatmap is so pretty and vivid.. XD</title><content type='html'>Don't just try heatmap..There are more options such as &lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;heatmap.2&lt;/span&gt; from &lt;span style="color: rgb(102, 0, 204); font-weight: bold;"&gt;gplots&lt;/span&gt; package, and &lt;span style="color: rgb(255, 102, 0); font-weight: bold;"&gt;heatmap_2&lt;/span&gt; from &lt;span style="color: rgb(102, 51, 255); font-weight: bold;"&gt;Heatplus&lt;/span&gt; package.&lt;br /&gt;Both heatmap.2 and heatmap_2 can show the bar of color code for arbitrary unit (color key ); in addition to that, heatmap_2 can repress the dendrogram for rows (but unable to suppress the clustering) and show different colors for dendrogram of columns based on their clusters.&lt;br /&gt;Don't worry about the data format! They "eat" the same format of data, meaning what heatmap can load is good for heatmap.2 &amp;amp; heatmap_2 too.&lt;br /&gt;Some miscellaneous setup just for pretty look&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1) color pattern&lt;/span&gt;&lt;br /&gt;Color palette can be easily assigned by using col=ColorPattern.&lt;br /&gt;Here are some internal/pre-defined color palettes:&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;heat.colors(n), topo.colors(n), redgreen(n) and cm.colors(n)&lt;/span&gt;&lt;br /&gt;Change (n) to set up how many levels you want in the color gradient&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;rev()&lt;/span&gt;: reverse the color pattern, for example rev(redgreen(100)) will get a gradient from green to red instead of the one from red to green.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2) color-stripe for specific group of sample&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;scol=c(...) &lt;/span&gt;is a vector with the length equaling to the number of your column.&lt;br /&gt;Just assign the color you want in th vector, like c("red","red","skyblue","skyblue") for a 4-coulmned dataset.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3) scaling&lt;/span&gt;&lt;br /&gt;scaling="row", "col", "none"; although keeping this option ON usually makes the heatmap pretty, I thought turning it OFF can help us have an ideal how many genes is in relatively low expression levels.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1356874791193614154-7347233188775280980?l=r-learning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/7347233188775280980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1356874791193614154&amp;postID=7347233188775280980' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/7347233188775280980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/7347233188775280980'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/2007/09/heatmap-is-so-pretty-and-vivid-xd.html' title='Heatmap is so pretty and vivid.. XD'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1356874791193614154.post-2682328276780879544</id><published>2007-09-26T15:45:00.000-05:00</published><updated>2008-01-27T01:55:46.916-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Stat530-hw2'/><title type='text'>How to feed the program ?</title><content type='html'>The first challenge met is what kind of function I should use to feed the program.&lt;br /&gt;Checked the data file, even with .xls; actually it's a tab separated text file, and thus I decided to use &lt;span style="color: rgb(255, 102, 0);"&gt;read.table()&lt;/span&gt; function.&lt;br /&gt;&lt;br /&gt;Read.table has very flexible parameters allowed to set up for reading in titles/column names, change of separators(^t, ^p, "." and so on).  However, R also provides several subtypes of read.table, which with mild difference of default.&lt;br /&gt;&lt;br /&gt;One of them, &lt;span style="color: rgb(255, 102, 0);"&gt;read.delim()&lt;/span&gt;, fits to my needs. It reads in the first row as the column names (check it by using colnames()), recognizes "tab" as separator (type ?read.delim to see detail).&lt;br /&gt;&lt;br /&gt;So far so good, right?  Don't be happy too early..&lt;br /&gt;Since our purpose is to visualize the data by heatmap, I'm so eager to see it first.. (what?! just put the fold change or something else on the back strove).  I'm so naive that it's not a big deal to throw the data into the heatmap().  Here comes the problem...   Orz&lt;br /&gt;&lt;code class="R"&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;pre&gt;&gt;t&lt;-read.delim("sch.dat") &gt;t&lt;br /&gt;&gt;colnames(t)&lt;br /&gt;&gt;dim(t)&lt;br /&gt;&gt;heatmap(t[2:7072,6:29],col=rev(heat.colors(100)))&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Error in heatmap(t[2:7072, 6:29], col = rev(heat.colors(100))) : &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;        'x' must be a numeric matrix&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;#since the column(1:5) are not numeric, they are probe/gene information&lt;/span&gt;&lt;br /&gt;#It's so weird, the range I select &lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;t[2:7072, 6:29]&lt;/span&gt; should be ALL numeric.&lt;br /&gt;#NOW learn a lesson what you saw is NOT what you think!!!&lt;br /&gt;&gt; t[1,7:8]&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;    C2.A..  C3.A..&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;1 18291.58 19402.7&lt;/span&gt;&lt;br /&gt;&gt; is.numeric(t[1,7:8]) &lt;span style="color: rgb(51, 204, 0);"&gt;# check if it is numeric.. XD XD XD it's NOT.. Orz.. no wonder..&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;[1] FALSE&lt;/span&gt;&lt;br /&gt;&gt;NewSet &lt;- array(rnorm(7071*25),dim=c(7071,25)) &lt;span style="color: rgb(51, 204, 0);"&gt;# put some number to array (just for sure it's numeric!!!)&lt;/span&gt;&lt;br /&gt;&gt;for(i in 1:7071){for(j in 1:24){NewSet[i,j]=t[i,5+j]}} &lt;span style="color: rgb(51, 204, 0);"&gt;# transfer data from original array to new one&lt;/span&gt;&lt;br /&gt;&gt;NewSet[1,2:3] &lt;span style="color: rgb(51, 204, 0);"&gt;# look almost identical to t[1,7:8]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;[1] 18291.58 19402.70&lt;/span&gt;&lt;br /&gt;&gt;is.numeric(NewSet[1,2:3])&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;br /&gt;[1] TRUE&lt;br /&gt;&lt;/span&gt;&gt;rownames(NewSet)&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;br /&gt;NULL&lt;br /&gt;&lt;/span&gt;&gt;colnames(NewSet)&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;br /&gt;NULL&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;#now the data matrix has no row/col names, which is not good for us to know which is which!&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;#assign the names to them&lt;/span&gt;&lt;br /&gt;&gt;rownames(NewSet)=t[,1] &lt;span style="color: rgb(51, 204, 0);"&gt;# row=genes&lt;/span&gt;&lt;br /&gt;&gt;colnames(NewSet)&lt;-c("c1","c2","c3","c4","c5","c6","c7","c8","c9","c10","c11","c12","p1","p2","p3","p4","p5","p6","p7","p8","p9","p10","p11","p12","") &lt;span style="color: rgb(51, 204, 0);"&gt;## The reason I would like to assign the row/col names is the heatmap function can automatically pick up the names and show on the plot&lt;br /&gt;## OK! now the data is ready for heatmap !!!!?&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1356874791193614154-2682328276780879544?l=r-learning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/2682328276780879544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1356874791193614154&amp;postID=2682328276780879544' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/2682328276780879544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/2682328276780879544'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/2007/09/how-to-feed-program.html' title='How to feed the program ?'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1356874791193614154.post-3976173063160440106</id><published>2007-09-24T02:36:00.000-05:00</published><updated>2007-09-24T02:37:55.961-05:00</updated><title type='text'>Some hints for analyzing microarray data</title><content type='html'>&lt;a href="http://strimmerlab.org/notes/rexpress.html"&gt;http://strimmerlab.org/notes/rexpress.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1356874791193614154-3976173063160440106?l=r-learning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/3976173063160440106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1356874791193614154&amp;postID=3976173063160440106' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/3976173063160440106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/3976173063160440106'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/2007/09/some-hints-for-analyzing-microarray.html' title='Some hints for analyzing microarray data'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1356874791193614154.post-7048194658222258216</id><published>2007-09-18T13:54:00.000-05:00</published><updated>2007-09-18T16:08:34.599-05:00</updated><title type='text'>Good workshops !!</title><content type='html'>Found out some workshop materials for practice,&lt;br /&gt;&lt;a href="http://www.bioconductor.org/workshops/"&gt;http://www.bioconductor.org/workshops/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://bioinf.wehi.edu.au/marray/ibc2004/"&gt;http://bioinf.wehi.edu.au/marray/ibc2004/&lt;/a&gt;&lt;br /&gt;Enjoy yourself..!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1356874791193614154-7048194658222258216?l=r-learning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/7048194658222258216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1356874791193614154&amp;postID=7048194658222258216' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/7048194658222258216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/7048194658222258216'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/2007/09/good-workshops.html' title='Good workshops !!'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1356874791193614154.post-2930225041803615415</id><published>2007-09-18T00:31:00.000-05:00</published><updated>2008-01-27T06:50:45.775-06:00</updated><title type='text'>Identify the differentially expressed genes</title><content type='html'>A slight difference of parameter will make a totally different gene list..  Must watch out what we did..  As I knew currently, the most important things are the design matrix and the "coefficient".  There is other minor adjustment such as topTable(&lt;span style="font-style: italic;"&gt;adjust&lt;/span&gt;), which is for p-value adjustment, but I would like to stick to "FDR" first.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code class="R"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;design&lt;-&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0); font-weight: bold;"&gt;cbind(&lt;span style="color: rgb(255, 102, 0);"&gt;Dye=1&lt;/span&gt;, Beta7=c(1,-1,-1,1,1,-1))&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;fit&lt;-lmFit(nordata,design,weights=NULL)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;fit&lt;-eBayes(fit)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;Table1&lt;-&lt;span style="color: rgb(102, 0, 204); font-weight: bold;"&gt;topTable(fit,&lt;span style="color: rgb(255, 204, 0);"&gt;coef="Dye"&lt;/span&gt;,adjust="fdr")&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;Table1$Name&lt;-substring(Table1$Name,1,12)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;Table1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;             ID         Name    logFC   AveExpr        t      P.Value  adj.P.Val        B&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;10747 H200005892 HLA-DQB1 - M 1.566674 12.002316 13.24244 9.728991e-06 0.02544872 3.807952&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;8819  H200006035 TYRP1 - Tyro 1.661024 12.159866 13.00588 1.082891e-05 0.02544872 3.733779&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;15579 H200006025 DAP - Death- 1.435546 12.644359 12.47848 1.384254e-05 0.02544872 3.559907&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;9305  H200005780 C19orf7 - Ch 1.353122 13.101057 12.39516 1.440280e-05 0.02544872 3.531313&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;12312 H200011083 KIAA0692 - K 1.358942 10.883141 12.14326 1.626307e-05 0.02544872 3.442918&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;10913 H200013564 RBMX - RNA b 1.289367 12.517112 11.79361 1.932612e-05 0.02544872 3.315169&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;15126 H200007318 HAP1 - Hunti 1.623051 11.536758 11.66654 2.060115e-05 0.02544872 3.267230&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;17192 H200013376 SLC8A2 - Sol 1.737073  4.501546 11.66589 2.060792e-05 0.02544872 3.266983&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;16546 H200006019 PPP5C - Prot 1.489265 10.131609 11.66234 2.064493e-05 0.02544872 3.265631&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;20416 H200006376 ARHA - Ras h 1.884627 13.675812 11.62780 2.100903e-05 0.02544872 3.252450&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code class="R"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;design&lt;-&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0); font-weight: bold;"&gt;c(1,-1,-1,1,1,-1)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;fit&lt;-lmFit(nordata,design,weights=NULL)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;fit&lt;-eBayes(fit)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;Table2&lt;-&lt;span style="color: rgb(102, 0, 204); font-weight: bold;"&gt;topTable(fit,adjust="fdr")&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;Table2$Name&lt;-substring(Table2$Name,1,12)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;Table2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;          ID         Name      logFC   AveExpr          t      P.Value adj.P.Val            B&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;6647  H200017286 GPR2 - G pro -2.4511865  7.787727 -10.770494 8.123551e-06 0.1834054  1.171025368&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;11025 H200018884 Homo sapiens -1.5975971  6.616640  -8.764280 3.424187e-05 0.2828096  0.707261894&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;3152  H200012024 ITGA1 - Inte  1.2673703  6.979029   8.390349 4.617165e-05 0.2828096  0.594759959&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;21405 H200007427 CENTG2 - Cen -1.1868237  6.092311  -8.290405 5.010579e-05 0.2828096  0.562965478&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;4910  H200003784 SEMA5A - Sem -1.3489761  6.809355  -6.893363 1.723876e-04 0.6096875  0.027552798&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;7832  H200004937 Homo sapiens -1.2424628  6.301858  -6.851093 1.794831e-04 0.6096875  0.008303493&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;18925 H200003977 F5 - Coagula -1.1046977  7.498769  -6.547843 2.410666e-04 0.6096875 -0.135922701&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;20812 H200001929 EPLIN - Epit -1.0963658  8.615247  -6.294852 3.107515e-04 0.6096875 -0.264929553&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;16442 H200001079 EGFL5 - EGF- -0.9630056  7.739278  -6.273861 3.174729e-04 0.6096875 -0.276006763&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;1755  H200014446 P2Y5 - Purin -0.9152066 12.226345  -6.147830 3.613902e-04 0.6096875 -0.343757901&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1356874791193614154-2930225041803615415?l=r-learning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/2930225041803615415/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1356874791193614154&amp;postID=2930225041803615415' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/2930225041803615415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/2930225041803615415'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/2007/09/identify-differentially-expressed-genes.html' title='Identify the differentially expressed genes'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1356874791193614154.post-2876611877697470355</id><published>2007-09-15T11:16:00.000-05:00</published><updated>2007-09-15T14:57:24.510-05:00</updated><title type='text'>Guestbook</title><content type='html'>Here is the guestbook.&lt;br /&gt;Welcome any suggestions and comments.  Hopefully, we can learn more from ALL of our try-and-error.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1356874791193614154-2876611877697470355?l=r-learning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/2876611877697470355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1356874791193614154&amp;postID=2876611877697470355' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/2876611877697470355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/2876611877697470355'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/2007/09/guestbook.html' title='Guestbook'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1356874791193614154.post-8526381902745866373</id><published>2007-09-13T08:00:00.000-05:00</published><updated>2007-09-15T10:36:03.385-05:00</updated><title type='text'>Check the results before next move...</title><content type='html'>Just found out the maQualityPlots() produced several diagnostic plots including both MA plts before and after normalization..   Orz Orz  Orz  Orz  Orz..&lt;br /&gt;&lt;br /&gt;Well.. but from this "mistake" we did learn things including how to extract subsets of data from an object, and to get MA plots after normalization.&lt;br /&gt;&lt;br /&gt;Next, I would try to generate diagnostic plots without maQualityPlots()...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1356874791193614154-8526381902745866373?l=r-learning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/8526381902745866373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1356874791193614154&amp;postID=8526381902745866373' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/8526381902745866373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/8526381902745866373'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/2007/09/check-results-before-next-move.html' title='Check the results before next move...'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1356874791193614154.post-1440586477814034562</id><published>2007-09-13T07:57:00.000-05:00</published><updated>2007-09-13T08:06:47.226-05:00</updated><title type='text'>Damn it!  It's a matter of memory...</title><content type='html'>I re-started the R, and try the following commands.  My purpose is to find out the maximal numbers of objects able to be print out in a single ps file.&lt;br /&gt;&lt;table border="1" cellpadding="1" cellspacing="0" width="750"&gt;&lt;tbody&gt;&lt;tr valign="top"&gt;&lt;td width="50%"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;x&lt;-rawdata@maRf[,1]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;y&lt;-rawdata@maGf[,1]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;plot(y~x)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;x&lt;-rawdata@maRf[,1:2]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;y&lt;-rawdata@maGf[,1:2]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;plot(y~x)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;x&lt;-rawdata@maRf[,1:3]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;y&lt;-rawdata@maGf[,1:3]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;plot(y~x)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;x&lt;-rawdata@maRf[,1:4]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;y&lt;-rawdata@maGf[,1:4]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;plot(y~x)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;x&lt;-rawdata@maRf[,1:5]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;y&lt;-rawdata@maGf[,1:5]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;plot(y~x)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;x&lt;-rawdata@maRf[,1:6]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;y&lt;-rawdata@maGf[,1:6]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;plot(y~x)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;x&lt;-rawdata@maRf&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;y&lt;-rawdata@maGf&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;plot(y~x)&lt;br /&gt;&gt; maQualityPlots(rawdata[,1], dev="postscript")&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Error in frame() : figure margins too large&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/td&gt;&lt;td width="50%"&gt;&lt;span style="color: rgb(255, 102, 0);font-size:180%;" &gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;They are ALL fine for plots()&lt;br /&gt;But maQualityPlots() still sucks!&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1356874791193614154-1440586477814034562?l=r-learning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/1440586477814034562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1356874791193614154&amp;postID=1440586477814034562' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/1440586477814034562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/1440586477814034562'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/2007/09/damn-it-its-matter-of-memory.html' title='Damn it!  It&apos;s a matter of memory...'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1356874791193614154.post-4183313470799117944</id><published>2007-09-13T06:16:00.000-05:00</published><updated>2007-09-15T02:32:55.576-05:00</updated><title type='text'>A primitive way to generate plots</title><content type='html'>&lt;table border="1" cellpadding="1" cellspacing="0" width="750"&gt;&lt;tbody&gt;&lt;tr valign="top"&gt;&lt;td width="50%"&gt;&lt;p&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;rawdata&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;br /&gt;An object of &lt;span style="color: rgb(51, 204, 0);"&gt;class "marrayRaw"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;br /&gt;@ma&lt;span style="color: rgb(204, 0, 0);"&gt;R&lt;/span&gt;f&lt;br /&gt;6Hs.195.1.gpr 6Hs.168.gpr 6Hs.166.gpr 6Hs.187.1.gpr 6Hs.194.gpr&lt;br /&gt;[1,] 227 370 139 69 187&lt;br /&gt;[2,] 208 273 181 80 213&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;br /&gt;&lt;br /&gt;@ma&lt;span style="color: rgb(0, 153, 0);"&gt;G&lt;/span&gt;f&lt;br /&gt;6Hs.195.1.gpr 6Hs.168.gpr 6Hs.166.gpr 6Hs.187.1.gpr 6Hs.194.gpr&lt;br /&gt;[1,] 357 304 189 106 218&lt;br /&gt;[2,] 292 235 255 133 216&lt;br /&gt;[3,] 284 223 256 123 290&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;x &lt;- rawdata@maRf&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;y &lt;- rawdata@maGf&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;plot(y~x)&lt;/span&gt;&lt;br /&gt;Error in plot.new() : figure margins too large&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="50%"&gt;&lt;p&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;/span&gt;&lt;/p&gt;1) check what variables we got within the dataset; here we have &lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;@ma&lt;span style="color: rgb(153, 0, 0);"&gt;R&lt;/span&gt;f&lt;/span&gt;, &lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;@ma&lt;span style="color: rgb(0, 153, 0);"&gt;G&lt;/span&gt;f&lt;/span&gt; and so on&lt;br /&gt;2) Get them&lt;br /&gt;3) plot it, but encounter the same results (this problem has been partially resloved by re-starting R [see NEXT article] )&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1356874791193614154-4183313470799117944?l=r-learning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/4183313470799117944/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1356874791193614154&amp;postID=4183313470799117944' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/4183313470799117944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/4183313470799117944'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/2007/09/primitive-way-to-generate-plots.html' title='A primitive way to generate plots'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1356874791193614154.post-4579714719953996078</id><published>2007-09-12T13:54:00.000-05:00</published><updated>2007-09-12T13:57:34.841-05:00</updated><title type='text'>Got a new toy!</title><content type='html'>The &lt;span style="font-style: italic; font-weight: bold; color: rgb(255, 102, 0);"&gt;marray&lt;/span&gt; Package..&lt;br /&gt;Now I can directly generate MA plots from either rawdata (Green/Red intensities) or transformed data (M/A values).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1356874791193614154-4579714719953996078?l=r-learning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/4579714719953996078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1356874791193614154&amp;postID=4579714719953996078' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/4579714719953996078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/4579714719953996078'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/2007/09/got-new-toy.html' title='Got a new toy!'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1356874791193614154.post-4696175527867807725</id><published>2007-09-12T01:31:00.001-05:00</published><updated>2007-09-12T15:31:56.192-05:00</updated><title type='text'>RG -&gt; MA !!!!!!</title><content type='html'>Ha~&lt;br /&gt;Just figured it out ~~~~~&lt;br /&gt;The program read in the red/green raw data (intensities), and then convert them to M/A values. So if checking the data before/after normalization, we can find out the variables were changed, from $R &amp; $G to $M &amp;amp; $A. That's why we can not get MA plots by using maQualityPlots, which converts $R/$G to $M/$A. How could we expect it to convert a dataset which is already $M/$A !? Right?&lt;br /&gt;&lt;br /&gt;&lt;table cellspacing="0" cellpadding="1" width="750" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p align="center"&gt;&lt;span style="color:#ffcccc;"&gt;&lt;strong&gt;&lt;span style="color:#ff6666;"&gt;BEFORE&lt;/span&gt;&lt;/strong&gt; &lt;/span&gt;normalization&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p align="center"&gt;&lt;strong&gt;&lt;span style="color:#ff6666;"&gt;AFTER&lt;/span&gt;&lt;/strong&gt; normalization&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top"&gt;&lt;td width="50%"&gt;&lt;p&gt;&lt;span style="COLOR: rgb(255,0,0)"&gt;&gt;rawdata &lt;- read.GenePix(target=ArrayInfo) &gt;rawdata&lt;span style="color:#3366ff;"&gt;&lt;br /&gt;An object of &lt;span style="color:#33cc00;"&gt;class "marrayRaw"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="COLOR: rgb(255,0,0)"&gt;&lt;span style="color:#3366ff;"&gt;&lt;br /&gt;@ma&lt;span style="color:#cc0000;"&gt;R&lt;/span&gt;f&lt;br /&gt;6Hs.195.1.gpr 6Hs.168.gpr 6Hs.166.gpr 6Hs.187.1.gpr 6Hs.194.gpr&lt;br /&gt;[1,] 227 370 139 69 187&lt;br /&gt;[2,] 208 273 181 80 213&lt;br /&gt;[3,] 239 288 238 77 377&lt;br /&gt;[4,] 247 301 228 91 329&lt;br /&gt;[5,] 221 290 218 91 351&lt;br /&gt;6Hs.243.1.gpr&lt;br /&gt;[1,] 241&lt;br /&gt;[2,] 241&lt;br /&gt;[3,] 307&lt;br /&gt;[4,] 280&lt;br /&gt;[5,] 236&lt;br /&gt;23179 more rows ...&lt;br /&gt;&lt;br /&gt;@ma&lt;span style="color:#009900;"&gt;G&lt;/span&gt;f&lt;br /&gt;6Hs.195.1.gpr 6Hs.168.gpr 6Hs.166.gpr 6Hs.187.1.gpr 6Hs.194.gpr&lt;br /&gt;[1,] 357 304 189 106 218&lt;br /&gt;[2,] 292 235 255 133 216&lt;br /&gt;[3,] 284 223 256 123 290&lt;br /&gt;[4,] 320 254 302 141 301&lt;br /&gt;[5,] 361 290 328 156 327&lt;br /&gt;6Hs.243.1.gpr&lt;br /&gt;[1,] 165&lt;br /&gt;[2,] 183&lt;br /&gt;[3,] 194&lt;br /&gt;[4,] 252&lt;br /&gt;[5,] 247&lt;br /&gt;23179 more rows ...&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style="COLOR: rgb(255,0,0)"&gt;&lt;span style="color:#3366ff;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="50%"&gt;&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&gt;NormalizedData=maNorm(rawdata)&lt;br /&gt;&gt;NormalizedData&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#3366ff;"&gt;An object of &lt;span style="color:#33cc00;"&gt;class "marrayNorm"&lt;/span&gt;&lt;br /&gt;@ma&lt;span style="color:#ff6600;"&gt;A&lt;/span&gt;&lt;br /&gt;6Hs.195.1.gpr 6Hs.168.gpr 6Hs.166.gpr 6Hs.187.1.gpr 6Hs.194.gpr 6Hs.243.1.gpr&lt;br /&gt;[1,] 6.895683 7.298095 NA NA NA 3.336213&lt;br /&gt;[2,] 5.965369 6.322153 5.608070 3.953445 NA 5.213656&lt;br /&gt;[3,] 6.332001 5.879320 6.272724 3.390680 6.759634 5.960176&lt;br /&gt;[4,] 6.765325 6.701772 6.569456 4.761781 6.698837 6.356586&lt;br /&gt;[5,] 6.821026 6.923822 6.699372 5.099223 6.954853 5.620098&lt;br /&gt;23179 more rows ...&lt;br /&gt;&lt;br /&gt;@ma&lt;span style="color:#ff6600;"&gt;M&lt;/span&gt;&lt;br /&gt;6Hs.195.1.gpr 6Hs.168.gpr 6Hs.166.gpr 6Hs.187.1.gpr 6Hs.194.gpr 6Hs.243.1.gpr&lt;br /&gt;[1,] -0.4520881 0.11756657 NA NA NA 5.2940001&lt;br /&gt;[2,] -0.1146129 0.02906567 -0.5395663 -0.9326132 NA 1.2865839&lt;br /&gt;[3,] 0.7722506 0.91978728 0.8007346 -0.6557331 0.69575087 2.0297161&lt;br /&gt;[4,] 0.2966088 0.07101715 -0.2995052 -0.2816260 0.01501081 0.3527075&lt;br /&gt;[5,] -0.5549713 -0.56805515 -0.6199517 -0.6012264 -0.21962736 -0.2105729&lt;br /&gt;23179 more rows ...&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1356874791193614154-4696175527867807725?l=r-learning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/4696175527867807725/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1356874791193614154&amp;postID=4696175527867807725' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/4696175527867807725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/4696175527867807725'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/2007/09/rg-ma.html' title='RG -&gt; MA !!!!!!'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1356874791193614154.post-4621850167981560004</id><published>2007-09-11T23:31:00.000-05:00</published><updated>2007-09-12T13:58:49.819-05:00</updated><title type='text'>MA Plots after Normalization ?  We have tried limma too !</title><content type='html'>Yes..!!!  We got a NEW problem!&lt;br /&gt;We use maNorm() to normalize the dataset and want to compare the MA plots before/after normalization.  However when we will apply  maQualityPlots, it showed error message again!&lt;br /&gt;&lt;table style="width: 750px; height: 387px;" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="50%"&gt;&lt;b&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&gt;NormalizedData=maNorm(rawdata)&lt;br /&gt;&gt;maQualityPlots(NormalizedData, dev="JPEG")&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(51, 102, 255);font-size:85%;" &gt;Error in 1:dim(mrawObj)[2] : NA/NaN argument&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);font-size:85%;" &gt;&gt; summary(NormalizedData)&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255);font-size:85%;" &gt;Normalized intensity data:       Object of class marrayNorm.&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255);font-size:85%;" &gt;.&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255);font-size:85%;" &gt;.&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);font-size:85%;" &gt;&gt; NormalizedData&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255);font-size:85%;" &gt;An object of class "marrayNorm"&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255);font-size:85%;" &gt;@maA&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255);font-size:85%;" &gt;     6Hs.195.1.gpr 6Hs.168.gpr 6Hs.166.gpr 6Hs.187.1.gpr 6Hs.194.gpr 6Hs.243.1.gpr&lt;br /&gt;[1,]      6.895683    7.298095          &lt;span style="color: rgb(255, 102, 0);"&gt;NA            NA          NA&lt;/span&gt;      3.336213&lt;br /&gt;[2,]      5.965369    6.322153    5.608070      3.953445          NA      5.213656&lt;br /&gt;[3,]      6.332001    5.879320    6.272724      3.390680    6.759634      5.960176&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255);font-size:85%;" &gt;.&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255);font-size:85%;" &gt;.&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;span style="font-size:85%;"&gt;.&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;write.marray(NormalizedData)&lt;/span&gt;&lt;br /&gt;NULL&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td width="50%"&gt;1) maNorm() to normalize the dataset&lt;br /&gt;2) tried to get MA plots&lt;br /&gt;3) check the normalized dataset -&gt; Yes, it's normailized&lt;br /&gt;4) By looking the data, &lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;we found the NA data within normalized dataset&lt;/span&gt;.  We guess that's the reason made maQualityPlots() not work!&lt;br /&gt;5) But we still can write the normalized data into a new file by using write.marray().&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;We decided to try another package for normalization, which is &lt;span style="color: rgb(255, 102, 0); font-weight: bold; font-style: italic;font-size:180%;" &gt;limma&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;table border="1" height="117" width="750"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="50%"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&gt;source("http://bioconductor.org/biocLite.R")&lt;br /&gt;&gt;biocLite("limma")&lt;br /&gt;&gt;library(limma)&lt;br /&gt;&gt;target &lt;- readTargets("TargetBeta7.txt") &gt;f &lt;- function(x) as.numeric(x$Flags &gt; -99)&lt;br /&gt;&gt;RG&lt;-read.maimages(target,source="genepix",wt.fun=f)&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Read 6Hs.195.1.gpr &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Read 6Hs.168.gpr &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Read 6Hs.166.gpr &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Read 6Hs.187.1.gpr &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Read 6Hs.194.gpr &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Read 6Hs.243.1.gpr&lt;/span&gt;&lt;br /&gt;&gt;RG&lt;-backgroundCorrect(RG, method="normexp",offset=50) &lt;span style="color: rgb(51, 102, 255);"&gt;Corrected array 1 &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Corrected array 2 &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Corrected array 3 &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Corrected array 4 &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Corrected array 5 &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Corrected array 6&lt;/span&gt;&lt;br /&gt;&gt;maQualityPlots(RG, dev="jpeg")&lt;br /&gt;&gt;nRG&lt;-normalizeWithinArrays(RG) &gt;maQualityPlots(nRG, dev="jpeg")&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Error in do.call("gpFlagWt", list(mraw@maW)) : &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;        no slot of name "maW" for this object of class "MAList"&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td width="50%"&gt;1) Install it first&lt;br /&gt;2) then load the package&lt;br /&gt;3) read in the list for *.gpr file&lt;br /&gt;4) Set up a filter so that any spot with a flag of −99 or less gets zero weight (based on &lt;a href="http://bioconductor.org/packages/2.0/bioc/vignettes/limma/inst/doc/usersguide.pdf"&gt;limma userguide&lt;/a&gt;)&lt;br /&gt;5) Read in the Red/Green raw intensities to "RG"&lt;br /&gt;6) Do an adaptive background correction which is optional&lt;br /&gt;but recommended for GenePix data&lt;br /&gt;7) get the MA plots&lt;br /&gt;8) run normalization&lt;br /&gt;9) &lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;try to get MA plots after normalization -&gt; failed again&lt;/span&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1356874791193614154-4621850167981560004?l=r-learning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/4621850167981560004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1356874791193614154&amp;postID=4621850167981560004' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/4621850167981560004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/4621850167981560004'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/2007/09/maplot-after-normalization.html' title='MA Plots after Normalization ?  We have tried limma too !'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1356874791193614154.post-3474791669436925507</id><published>2007-09-07T22:19:00.000-05:00</published><updated>2007-09-15T03:01:11.237-05:00</updated><title type='text'>The postscript problem in HW #1</title><content type='html'>The first part for reading in the dataset is fine, like this:&lt;br /&gt;&lt;br /&gt;&lt;table border="1" height="117" width="750"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="50%"&gt;&lt;b&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&amp;gt;library("arrayQuality")&lt;br /&gt;&lt;br /&gt;&amp;gt;ArrayInfo &amp;lt;- read.marrayInfo("targetBeta7.txt")&lt;br /&gt;&lt;br /&gt;&amp;gt;rawdata &amp;lt;- read.GenePix(target=ArrayInfo) &lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td width="50%"&gt; 1) Loading the external package first&lt;br /&gt;2) Read array layout into the customer variable "ArrayInfo"&lt;br /&gt;3) Read in the raw data&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;then we can get MA plots as PNG or JPEG format,&lt;/p&gt;&lt;br /&gt;&lt;table style="width: 750px; height: 97px;" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td height="65" width="50%"&gt;&lt;p&gt;&lt;b&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&amp;gt;maQualityPlots(rawdata, dev="png")&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;or&lt;br /&gt;&lt;b&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&amp;gt;maQualityPlots(rawdata, dev="jpeg")&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;/td&gt;&lt;td height="65" width="50%"&gt;Either output as PNG or JPEG format&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;However, we can't get the output as postscript format expect some error messages,&lt;br /&gt;&lt;br /&gt;&lt;table style="width: 750px; height: 252px;" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td height="65" width="50%"&gt;&lt;p style="color: rgb(255, 0, 0);"&gt;&lt;b&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&amp;gt; maQualityPlots(rawdata, dev="ps")&lt;br /&gt;&lt;span style="color: rgb(0, 128, 255);"&gt;[1] "Format error, format will be set to PNG"&lt;br /&gt;[1] TRUE&lt;br /&gt;[1] TRUE&lt;br /&gt;[1] TRUE&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;/span&gt;&lt;br /&gt;&amp;gt; maQualityPlots(rawdata, dev="postscript")&lt;br /&gt;&lt;span style="color: rgb(0, 128, 255);"&gt;Error in frame() : figure margins too large&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&amp;gt;postscript(&lt;/b&gt;&lt;b&gt;maQualityPlots(rawdata)&lt;/b&gt;&lt;b&gt;) &lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td height="65" width="50%"&gt;&lt;br /&gt;&lt;p&gt;Basically, &lt;b&gt;dev="ps"&lt;/b&gt; is not a right parameter in R 2.5.1 under win32.  We checked the code for maQualityPlots(), and it actually recognizes "postscript".&lt;br /&gt;If using &lt;b&gt;dev="postscript"&lt;/b&gt;, we got the&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;b&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;error message&lt;/span&gt;&lt;/b&gt;.&lt;br /&gt;&lt;b&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;But we did generate postscript ouptout by postscript(cmd), which can output the first plot from maQualityPlots() only (check the ps file &lt;a href="http://ky.hsiao.googlepages.com/diagPlot.6Hs.195.1.ps"&gt;here&lt;/a&gt;). (we didn't know why yet!)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;We checked the manual for maQualityPlots (said nothing) and frame(), and found out &lt;span style="color: rgb(255, 102, 0);"&gt;frame() is an alias for plot.new()&lt;/span&gt;.  Then we searched the R-help/discussion group, and it showed there are lots of such problems existed for &lt;span style="color: rgb(51, 51, 255);"&gt;plot.new()&lt;/span&gt; or &lt;span style="color: rgb(51, 51, 255);"&gt;frame()&lt;/span&gt; about &lt;b style="color: rgb(51, 102, 255);"&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;"&lt;/span&gt;figure margins too large&lt;/b&gt;&lt;b&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;"&lt;/span&gt;&lt;/b&gt;, and it said this problem came from the &lt;b&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;too small margins&lt;/span&gt;&lt;/b&gt; or too big/complicated &lt;b&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;figures&lt;/span&gt;&lt;/b&gt;, for example, too many points or lines.&lt;br /&gt;People suggested to re-set the margins to resolve this problem. So first we &lt;span style="color: rgb(255, 102, 0);"&gt;check the margin set for postscript&lt;/span&gt;,&lt;br /&gt;&lt;br /&gt;&lt;table style="width: 750px; height: 285px;" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td height="65" width="50%"&gt;&lt;p&gt;&lt;b&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&amp;gt;ps.options()&lt;br /&gt;&lt;span style="color: rgb(0, 128, 255);"&gt;.&lt;br /&gt;$width&lt;br /&gt;[1] 0&lt;br /&gt;$height&lt;br /&gt;[1] 0&lt;br /&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 128, 255);"&gt;&lt;b&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&amp;gt;ps.options(width=1600, height=1200)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&amp;gt;ps.options()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 128, 255);"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;$width&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt; [1] 1600&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;$height&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt; [1] 1200&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;b&gt;&lt;br /&gt;.&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td height="65" width="50%"&gt;&lt;p&gt;it surprised us that both width and height are "ZERO".&lt;br /&gt;So we tried to fix it by using &lt;b&gt;ps.options(width=1600, height=1200)&lt;/b&gt;, and the results look good.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;However, after setting up the width and height, maQualityPlots still showed the error "Error in frame() : figure margins too large". Next we approached the issue by &lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;decreasing the margins&lt;/span&gt;&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;table style="width: 750px; height: 243px;" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td height="65" width="50%"&gt;&lt;b&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&amp;gt;mai=c(0.2,0.2,0.2,0.2)&lt;br /&gt;&amp;gt;mar=c(1,1,1,1)&lt;br /&gt;&amp;gt;par()&lt;br /&gt;&lt;span style="color: rgb(0, 128, 255);"&gt;.&lt;br /&gt;.&lt;br /&gt;$mai&lt;br /&gt;[1] 0.612 0.492 0.492 0.252&lt;br /&gt;$mar&lt;br /&gt;[1] 5.1 4.1 4.1 2.1&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 128, 255);"&gt;&lt;b&gt;.&lt;br /&gt;.&lt;/b&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;b&gt;&amp;gt;par(mai=c(0.2,0.2,0.2,0.2),mar=c(1,1,1,1))&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td height="65" width="50%"&gt;&lt;p&gt;After all, we still can't get the right results.  It still showed "Error in frame() : figure margins too large"! &lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1356874791193614154-3474791669436925507?l=r-learning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/3474791669436925507/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1356874791193614154&amp;postID=3474791669436925507' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/3474791669436925507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/3474791669436925507'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/2007/09/postscript-problem-in-hw-1.html' title='The postscript problem in HW #1'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1356874791193614154.post-4832955614091464473</id><published>2007-09-07T19:00:00.000-05:00</published><updated>2007-09-07T23:01:41.641-05:00</updated><title type='text'>Here is the link for homework #1 (DUE 9/20)</title><content type='html'>http://www.stat.uiuc.edu/~pingma/stat530/stat530hw.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1356874791193614154-4832955614091464473?l=r-learning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://r-learning.blogspot.com/feeds/4832955614091464473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1356874791193614154&amp;postID=4832955614091464473' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/4832955614091464473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1356874791193614154/posts/default/4832955614091464473'/><link rel='alternate' type='text/html' href='http://r-learning.blogspot.com/2007/09/here-is-link-for-homework-1-due-920.html' title='Here is the link for homework #1 (DUE 9/20)'/><author><name>KY</name><uri>http://www.blogger.com/profile/14211804976479277073</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_mxV4y1GIk-Y/R4CLhYB-zcI/AAAAAAAACvw/8wcf1k29BTM/S220/GC0422_%5B630%5D_4467.JPG'/></author><thr:total>0</thr:total></entry></feed>
