<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: barplot code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sat, 06 Sep 2008 23:21:52 GMT</pubDate>
    <description>DZone Snippets: barplot code</description>
    <item>
      <title>barplot the lines of code by module</title>
      <link>http://snippets.dzone.com/posts/show/469</link>
      <description>The CSV file "loc.csv" contains the following:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;Module LOC&lt;br /&gt;a.rb 100&lt;br /&gt;b.rb 120&lt;br /&gt;c.rb 54&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The following R code creates the barplot image "loc.png":&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;data &lt;- read.csv(file="loc.csv", sep = " ", header = TRUE, row.names = "Module")&lt;br /&gt;png("loc.png", width = 640, height = 480)&lt;br /&gt;barplot(data$LOC, names = rownames(data), ylim = c(0, 250), main = "Lines of code by module", ylab = "Lines of code", xlab = "Module")&lt;br /&gt;dev.off()&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Fri, 08 Jul 2005 20:10:06 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/469</guid>
      <author>r-fanatic ()</author>
    </item>
  </channel>
</rss>
