.ig >>
<STYLE TYPE="text/css">
<!--
        A:link{text-decoration:none}
        A:visited{text-decoration:none}
        A:active{text-decoration:none}
        OL,UL,P,BODY,TD,TR,TH,FORM { font-family: arial,helvetica,sans-serif;; font-size:small; color: #333333; }

        H1 { font-size: x-large; font-family: arial,helvetica,sans-serif; }
        H2 { font-size: large; font-family: arial,helvetica,sans-serif; }
        H3 { font-size: medium; font-family: arial,helvetica,sans-serif; }
        H4 { font-size: small; font-family: arial,helvetica,sans-serif; }
-->
</STYLE>
<title>ploticus: examples using heatmap prefab</title>
<body bgcolor=D0D0EE vlink=0000FF>
<br>
<br>
<center>
<table cellpadding=2 bgcolor=FFFFFF width=550><tr>
<td>
  <table cellpadding=2 width=550><tr>
  <td><br><h2>Examples using heatmap prefab</h2></td>
  <td align=right>
  <small>
  <a href="../doc/welcome.html"><img src="../doc/ploticus.gif" border=0></a><br>
  Version 2.33 Jun'06
     </small><br><a href="../doc/prefabs.html">Prefabs</a>
  <td></tr></table>
</td></tr>
<td>
<br>
<br>
.>>

.TH Examples_using_heatmap_prefab PL "02-JUN-2006   PL ploticus.sourceforge.net"

.LP
These examples use the 
.ig >>
<a href="prefab_heatmap.html">
.>>
\0heatmap prefab
.ig >>
</a>
.>>
and are included in the distribution (\fC./pltestsuite/testpf_heatmap\fR).
.ig >>
<a href="prefab_gallery.html">
.>>
\0Gallery of ALL prefab examples
.ig >>
</a>
.>>


.ig >>
<br><br><br>
.>>


.SH heatmap example 1
.ig >>
<img src="../gallery/prefab_img/heatmap1.gif">
.>>
.LP
.nf
   pl -prefab heatmap data=curve1.dat y=1 x=2   

   The curve1.dat file looks like this:
	331	75
	331.624	83.5518
	332.105	88.7758
	332.492	91.8638
	..etc.
.fi
.LP
The heatmap prefab's basic mode is to count instances.  Here, the bin sizes
in x and y are automatically determined, as is the breakdown for color coding.
Default color scheme is used.
These can all be given explicitly if desired.
In this example, both X and Y are numeric.

.ig >>
<br><br><br>
.>>

.SH heatmap example 2
.ig >>
<img src="../gallery/prefab_img/heatmap2.gif">
.>>
.nf
  pl -prefab heatmap data=snpmap.dat header=yes y=1 x=2 ycats=yes xbinsize=5  \\
     colorlist=white,limegreen,green,teal,blue,purple,black
.fi
.LP
Counting instances again.  In this example X is categorical and Y is numeric, and
a user-supplied x binsize and color scheme was used.  Y bin size and color breakdown
are automatically determined.

.ig >>
<br><br><br>
.>>

.SH heatmap example 3
.ig >>
<img src="../gallery/prefab_img/heatmap3.gif">
.>>
.nf
  pl -prefab heatmap data=data26 x=1 xcats=yes y=2 ycats=yes contentfield=3  \\
	outline="color=black width=5" 

  The data26  file looks like this:
	CL PNG 44
	CL SVG 38
	CL SWF 26
	CL PS 54
	CGI PNG 37
	...
.fi
.LP
In this example, instead of counting instances, a predetermined value (\fCcontentfield=3\fR) is used
to set cell color.  Both X and Y are categorical.  The cells are separated by thicker
black lines.

.ig >>
<br><br><br>
.>>

.SH heatmap example 4
.ig >>
<img src="../gallery/prefab_img/heatmap4.gif">
.>>
.nf
  pl -prefab heatmap data=data26 x=1 xcats=yes y=2 ycats=yes contentfield=3 \\
	symbol="shape=circle radius=0.1" legendsep=0.2 zerocolor=white 

.fi
.LP
Same as example 3 but circles are used for cells, and background is white.

.ig >>
<br>
<br>
</td></tr>
<td align=right>
<a href="../doc/welcome.html">
<img src="../doc/ploticus.gif" border=0></a><br><small>data display engine &nbsp; <br>
<a href="../doc/Copyright.html">Copyright Steve Grubb</a>
<br>
<br>
<center>
<img src="../gallery/all.gif"> 
</center>
</td></tr>
</table>
<br>
<center>
Ploticus is hosted at http://ploticus.sourceforge.net <br>
<img src="http://sourceforge.net/sflogo.php?group_id=38453" width="88" height="31" border="0" alt="SourceForge Logo">
</center>
.>>
