<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://osiris.eemb.ucsb.edu/wiki/galaxyucsb/index.php?action=history&amp;feed=atom&amp;title=R_file_requires_myFluc2</id>
		<title>R file requires myFluc2 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://osiris.eemb.ucsb.edu/wiki/galaxyucsb/index.php?action=history&amp;feed=atom&amp;title=R_file_requires_myFluc2"/>
		<link rel="alternate" type="text/html" href="https://osiris.eemb.ucsb.edu/wiki/galaxyucsb/index.php?title=R_file_requires_myFluc2&amp;action=history"/>
		<updated>2026-05-11T16:58:32Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.2</generator>

	<entry>
		<id>https://osiris.eemb.ucsb.edu/wiki/galaxyucsb/index.php?title=R_file_requires_myFluc2&amp;diff=466&amp;oldid=prev</id>
		<title>Oakley: Created page with &quot;myFluc2&lt;-function (table, type = &quot;size&quot;, floor = 0, ceiling = max(table$freq,      na.rm = TRUE))  {     if (is.table(table))          table &lt;- as.data.frame(t(table))     oldnam…&quot;</title>
		<link rel="alternate" type="text/html" href="https://osiris.eemb.ucsb.edu/wiki/galaxyucsb/index.php?title=R_file_requires_myFluc2&amp;diff=466&amp;oldid=prev"/>
				<updated>2011-11-19T07:32:13Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;myFluc2&amp;lt;-function (table, type = &amp;quot;size&amp;quot;, floor = 0, ceiling = max(table$freq,      na.rm = TRUE))  {     if (is.table(table))          table &amp;lt;- as.data.frame(t(table))     oldnam…&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;myFluc2&amp;lt;-function (table, type = &amp;quot;size&amp;quot;, floor = 0, ceiling = max(table$freq, &lt;br /&gt;
    na.rm = TRUE)) &lt;br /&gt;
{&lt;br /&gt;
    if (is.table(table)) &lt;br /&gt;
        table &amp;lt;- as.data.frame(t(table))&lt;br /&gt;
    oldnames &amp;lt;- names(table)&lt;br /&gt;
    names(table) &amp;lt;- c(&amp;quot;x&amp;quot;, &amp;quot;y&amp;quot;, &amp;quot;result&amp;quot;)&lt;br /&gt;
    table &amp;lt;- add.all.combinations(table, list(&amp;quot;x&amp;quot;, &amp;quot;y&amp;quot;))&lt;br /&gt;
    table &amp;lt;- transform(table, x = as.factor(x), y = as.factor(y), &lt;br /&gt;
        freq = result)&lt;br /&gt;
    if (type == &amp;quot;size&amp;quot;) {&lt;br /&gt;
        table &amp;lt;- transform(table, freq = sqrt(pmin(freq, ceiling)/ceiling), &lt;br /&gt;
            border = ifelse(is.na(freq), &amp;quot;grey90&amp;quot;, ifelse(freq &amp;gt; &lt;br /&gt;
                ceiling, &amp;quot;grey30&amp;quot;, &amp;quot;grey50&amp;quot;)))&lt;br /&gt;
        table[is.na(table$freq), &amp;quot;freq&amp;quot;] &amp;lt;- 1&lt;br /&gt;
        table &amp;lt;- subset(table, freq * ceiling &amp;gt;= floor)&lt;br /&gt;
    }&lt;br /&gt;
    if (type == &amp;quot;size&amp;quot;) {&lt;br /&gt;
        nx &amp;lt;- length(levels(table$x))&lt;br /&gt;
        ny &amp;lt;- length(levels(table$y))&lt;br /&gt;
        p &amp;lt;- ggplot(table, aes_string(x = &amp;quot;x&amp;quot;, y = &amp;quot;y&amp;quot;, height = &amp;quot;freq/2&amp;quot;, &lt;br /&gt;
            width = &amp;quot;freq/2&amp;quot;, fill = &amp;quot;border&amp;quot;)) + geom_tile(colour = &amp;quot;white&amp;quot;) + &lt;br /&gt;
            scale_fill_identity() + opts(aspect.ratio = ny/nx, legend.position=&amp;quot;none&amp;quot;) + xlab(&amp;quot;&amp;quot;) + ylab(&amp;quot;&amp;quot;)&lt;br /&gt;
    }&lt;br /&gt;
    else {&lt;br /&gt;
        p &amp;lt;- ggplot(table, aes_string(x = &amp;quot;x&amp;quot;, y = &amp;quot;y&amp;quot;, fill = &amp;quot;freq&amp;quot;)) + &lt;br /&gt;
            geom_tile(colour = &amp;quot;grey50&amp;quot;) + scale_fill_gradient2(low = &amp;quot;white&amp;quot;, &lt;br /&gt;
            high = &amp;quot;darkgreen&amp;quot;)&lt;br /&gt;
    }&lt;br /&gt;
    p$xlabel &amp;lt;- oldnames[1]&lt;br /&gt;
    p$ylabel &amp;lt;- oldnames[2]&lt;br /&gt;
    p&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Oakley</name></author>	</entry>

	</feed>