Debian Codegraph @

pltestsuite/heatmap3.htm

raw symbols SCIP
1 <html><h1>heatmap3</h1><img src="heatmap3.gif"><p>
2 <a href="gall.using.html">How to download and try this example</a><br>
3
4 <pre><b>Usage: pl -gif [-map] heatmap3.htm
5
6 This color grid involves processing raw data by
7 counting occurances within ranges, then mapping counts to colors by range.
8
9 Uses data file <a href="snpmap.dat">snpmap.dat</a> .
10 For brevity, only chromosomes 1-7 and X are represented in this example.
11
12 <hr></b>
13
14 #set SYM = "radius=0.08 shape=square style=filled"
15 #setifnotgiven CGI = "http://ploticus.sourceforge.net/cgi-bin/showcgiargs"
16
17 #proc page
18 pagesize: 10 4
19
20 // read in the SNP map data file..
21 #proc getdata
22 fieldnameheader: yes
23 file: strainz.dat
24
25 #proc categories
26 axis: x
27 datafield: 2
28
29 #proc categories
30 axis: y
31 datafield: 1
32
33 // set up the plotting area
34 #proc areadef
35 rectangle: 1 1 9 3.5
36 xscaletype: categories
37 yscaletype: categories
38 yaxis.stubs: usecategories
39 yaxis.stubdetails: adjust=0.7,0
40 yaxis.axisline: none
41 yaxis.tics: none
42 xaxis.stubs: usecategories
43 xaxis.axisline: none
44 xaxis.tics: none
45 xaxis.location: max+0.3
46
47
48 // set up legend for color gradients..
49 #proc legendentry
50 sampletype: color
51 details: dullyellow
52 label: 1 or more SD above normal
53 tag: 1
54
55 #proc legendentry
56 sampletype: color
57 details: white
58 label: within 1 SD of normal
59 tag: -1
60
61 #proc legendentry
62 sampletype: color
63 details: skyblue
64 label: 1 or more SD below normal
65 tag: -99
66
67
68 // use proc scatterplot to count # of instances and pick appropriate color from legend..
69 #proc scatterplot
70 xfield: meas
71 yfield: strain
72 cluster: no
73 symrangefield: zscore
74 rectangle: 1 1 outline
75
76 // overlay the values..
77 #proc scatterplot
78 xfield: meas
79 yfield: strain
80 cluster: no
81 labelfield: value
82 textdetails: size=6
83
84
85 // display legend..
86 #proc legend
87 location: min+0.7 min-0.2
88 textdetails: size=6
89