<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.taichimd.us/index.php?action=history&amp;feed=atom&amp;title=File%3AScatterhist.svg</id>
	<title>File:Scatterhist.svg - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.taichimd.us/index.php?action=history&amp;feed=atom&amp;title=File%3AScatterhist.svg"/>
	<link rel="alternate" type="text/html" href="https://wiki.taichimd.us/index.php?title=File:Scatterhist.svg&amp;action=history"/>
	<updated>2026-04-09T14:37:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://wiki.taichimd.us/index.php?title=File:Scatterhist.svg&amp;diff=38816&amp;oldid=prev</id>
		<title>Brb at 14:22, 16 February 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.taichimd.us/index.php?title=File:Scatterhist.svg&amp;diff=38816&amp;oldid=prev"/>
		<updated>2024-02-16T14:22:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:22, 16 February 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;syntaxhighlight lang=&#039;r&#039;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;scatterhist &amp;lt;- function(x, y, xlab=&amp;quot;&amp;quot;, ylab=&amp;quot;&amp;quot;){&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;scatterhist &amp;lt;- function(x, y, xlab=&amp;quot;&amp;quot;, ylab=&amp;quot;&amp;quot;){&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     zones=matrix(c(2,0,1,3), ncol=2, byrow=TRUE)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     zones=matrix(c(2,0,1,3), ncol=2, byrow=TRUE)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l32&quot;&gt;Line 32:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;t3 &amp;lt;- topTable(fit3,coef=1, number = Inf)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;t3 &amp;lt;- topTable(fit3,coef=1, number = Inf)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;with(t3, scatterhist(P.Value, adj.P.Val, xlab = &amp;quot;P-value&amp;quot;, ylab = &amp;quot;BH adjusted P&amp;quot;))&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;with(t3, scatterhist(P.Value, adj.P.Val, xlab = &amp;quot;P-value&amp;quot;, ylab = &amp;quot;BH adjusted P&amp;quot;))&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff:1.41:old-17741:rev-38816:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Brb</name></author>
	</entry>
	<entry>
		<id>https://wiki.taichimd.us/index.php?title=File:Scatterhist.svg&amp;diff=17741&amp;oldid=prev</id>
		<title>Brb: Brb uploaded a new version of File:Scatterhist.svg</title>
		<link rel="alternate" type="text/html" href="https://wiki.taichimd.us/index.php?title=File:Scatterhist.svg&amp;diff=17741&amp;oldid=prev"/>
		<updated>2018-10-01T17:33:18Z</updated>

		<summary type="html">&lt;p&gt;Brb uploaded a new version of &lt;a href=&quot;/view/File:Scatterhist.svg&quot; title=&quot;File:Scatterhist.svg&quot;&gt;File:Scatterhist.svg&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:33, 1 October 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wikidb:diff:1.41:old-17739:rev-17741 --&gt;
&lt;/table&gt;</summary>
		<author><name>Brb</name></author>
	</entry>
	<entry>
		<id>https://wiki.taichimd.us/index.php?title=File:Scatterhist.svg&amp;diff=17739&amp;oldid=prev</id>
		<title>Brb: scatterhist &lt;- function(x, y, xlab=&quot;&quot;, ylab=&quot;&quot;){
    zones=matrix(c(2,0,1,3), ncol=2, byrow=TRUE)
    layout(zones, widths=c(4/5,1/5), heights=c(1/5,4/5))
    xhist = hist(x, plot=FALSE)
    yhist = hist(y, plot=FALSE)
    top = max(c(xhist$counts, yhi...</title>
		<link rel="alternate" type="text/html" href="https://wiki.taichimd.us/index.php?title=File:Scatterhist.svg&amp;diff=17739&amp;oldid=prev"/>
		<updated>2018-10-01T17:21:41Z</updated>

		<summary type="html">&lt;p&gt;scatterhist &amp;lt;- function(x, y, xlab=&amp;quot;&amp;quot;, ylab=&amp;quot;&amp;quot;){     zones=matrix(c(2,0,1,3), ncol=2, byrow=TRUE)     layout(zones, widths=c(4/5,1/5), heights=c(1/5,4/5))     xhist = hist(x, plot=FALSE)     yhist = hist(y, plot=FALSE)     top = max(c(xhist$counts, yhi...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;scatterhist &amp;lt;- function(x, y, xlab=&amp;quot;&amp;quot;, ylab=&amp;quot;&amp;quot;){&lt;br /&gt;
    zones=matrix(c(2,0,1,3), ncol=2, byrow=TRUE)&lt;br /&gt;
    layout(zones, widths=c(4/5,1/5), heights=c(1/5,4/5))&lt;br /&gt;
    xhist = hist(x, plot=FALSE)&lt;br /&gt;
    yhist = hist(y, plot=FALSE)&lt;br /&gt;
    top = max(c(xhist$counts, yhist$counts))&lt;br /&gt;
    par(mar=c(3,3,1,1))&lt;br /&gt;
    plot(x,y)&lt;br /&gt;
    par(mar=c(0,3,1,1))&lt;br /&gt;
    barplot(xhist$counts, axes=FALSE, ylim=c(0, top), space=0)&lt;br /&gt;
    par(mar=c(3,0,1,1))&lt;br /&gt;
    barplot(yhist$counts, axes=FALSE, xlim=c(0, top), space=0, horiz=TRUE)&lt;br /&gt;
    par(oma=c(3,3,0,0))&lt;br /&gt;
    mtext(xlab, side=1, line=1, outer=TRUE, adj=0, &lt;br /&gt;
          at=.4)&lt;br /&gt;
    mtext(ylab, side=2, line=1, outer=TRUE, adj=0, &lt;br /&gt;
          at=.4)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
library(limma)&lt;br /&gt;
set.seed(1234)&lt;br /&gt;
n &amp;lt;- 100&lt;br /&gt;
testexpr &amp;lt;- matrix(rnorm(n * 10, 5, 1), nc= 10)&lt;br /&gt;
&lt;br /&gt;
design3 &amp;lt;- model.matrix(~ 0 + as.factor(c(rep(1,5), rep(2, 5))))&lt;br /&gt;
colnames(design3) &amp;lt;- c(&amp;quot;A&amp;quot;, &amp;quot;B&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
fit3 &amp;lt;- lmFit(testexpr,design3)&lt;br /&gt;
contrasts.matrix3 &amp;lt;- makeContrasts(&amp;quot;AvsB&amp;quot;=A-B, levels = design3)&lt;br /&gt;
fit3 &amp;lt;- eBayes(contrasts.fit(fit3, contrasts=contrasts.matrix3))&lt;br /&gt;
&lt;br /&gt;
t3 &amp;lt;- topTable(fit3,coef=1, number = Inf)&lt;br /&gt;
with(t3, scatterhist(P.Value, adj.P.Val, xlab = &amp;quot;P-value&amp;quot;, ylab = &amp;quot;BH adjusted P&amp;quot;))&lt;/div&gt;</summary>
		<author><name>Brb</name></author>
	</entry>
</feed>