<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Courier New, Courier, monospace">Question. When I use the
code below to print <br>
a list of values to the right of my graph,<br>
the colorkey list appears unusual.&nbsp; At the top <br>
the list of percentages tops out at 90.87%<br>
instead of the expected 100%. The 100% appears<br>
at the bottom below the lowest percent 14.29%. <br>
<br>
The numbers of tx3_sp CK_PCT are read in as follows. <br>
ID is the PCT and CK_PCT is what's plotted. <br>
<small><small>&gt; tx3_sp<br>
An object of class &#8220;SpatialPolygonsDataFrame&#8221;<br>
Slot "data":<br>
&nbsp;&nbsp;&nbsp; PCT&nbsp;&nbsp;&nbsp; CD&nbsp;&nbsp; COMM&nbsp;&nbsp; JP&nbsp;&nbsp;&nbsp;&nbsp; LD&nbsp;&nbsp;&nbsp; SB&nbsp;&nbsp;&nbsp; SS CK_TOT&nbsp; CK_PCT TOT_VOTE<br>
1&nbsp; 1120 CD-03 COMM01 JP-3 LD-102 SB-12 SS-16&nbsp;&nbsp; 1693&nbsp; 90.87%&nbsp;&nbsp;&nbsp;&nbsp; 1863<br>
2&nbsp; 1121 CD-05 COMM01 JP-3 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp; 634&nbsp; 54.28%&nbsp;&nbsp;&nbsp;&nbsp; 1168<br>
3&nbsp; 1124 CD-05 COMM01 JP-3 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp; 584&nbsp; 43.39%&nbsp;&nbsp;&nbsp;&nbsp; 1346<br>
4&nbsp; 1135 CD-32 COMM01 JP-3 LD-102 SB-12 SS-08&nbsp;&nbsp;&nbsp; 815&nbsp; 33.51%&nbsp;&nbsp;&nbsp;&nbsp; 2432<br>
5&nbsp; 1136 CD-32 COMM01 JP-3 LD-102 SB-12 SS-08&nbsp;&nbsp;&nbsp; 446&nbsp; 52.84%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 844<br>
6&nbsp; 1719 CD-03 COMM01 JP-3 LD-102 SB-12 SS-16&nbsp;&nbsp; 1392&nbsp; 68.17%&nbsp;&nbsp;&nbsp;&nbsp; 2042<br>
7&nbsp; 1720 CD-03 COMM01 JP-3 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp; 523&nbsp; 66.20%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 790<br>
8&nbsp; 1723 CD-03 COMM01 JP-3 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp; 788&nbsp; 82.34%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 957<br>
9&nbsp; 1724 CD-03 COMM01 JP-3 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp; 994&nbsp; 69.41%&nbsp;&nbsp;&nbsp;&nbsp; 1432<br>
10 1725 CD-32 COMM01 JP-3 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp;&nbsp; 31&nbsp; 59.62%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 52<br>
11 1802 CD-32 COMM01 JP-3 LD-102 SB-12 SS-08&nbsp;&nbsp;&nbsp; 999&nbsp; 44.20%&nbsp;&nbsp;&nbsp;&nbsp; 2260<br>
12 1803 CD-32 COMM01 JP-3 LD-102 SB-12 SS-08&nbsp;&nbsp;&nbsp; 672&nbsp; 44.24%&nbsp;&nbsp;&nbsp;&nbsp; 1519<br>
13 1804 CD-32 COMM01 JP-3 LD-102 SB-12 SS-08&nbsp;&nbsp;&nbsp; 280&nbsp; 39.94%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 701<br>
14 1805 CD-32 COMM01 JP-3 LD-102 SB-12 SS-08&nbsp;&nbsp;&nbsp; 654&nbsp; 48.12%&nbsp;&nbsp;&nbsp;&nbsp; 1359<br>
15 1806 CD-32 COMM01 JP-3 LD-102 SB-12 SS-08&nbsp;&nbsp;&nbsp; 495&nbsp; 37.61%&nbsp;&nbsp;&nbsp;&nbsp; 1316<br>
16 1807 CD-32 COMM01 JP-3 LD-102 SB-12 SS-08&nbsp;&nbsp;&nbsp; 695&nbsp; 40.81%&nbsp;&nbsp;&nbsp;&nbsp; 1703<br>
17 1809 CD-32 COMM01 JP-3 LD-102 SB-12 SS-08&nbsp;&nbsp;&nbsp; 563&nbsp; 47.11%&nbsp;&nbsp;&nbsp;&nbsp; 1195<br>
18 1810 CD-32 COMM01 JP-3 LD-102 SB-12 SS-08&nbsp;&nbsp;&nbsp; 461&nbsp; 42.92%&nbsp;&nbsp;&nbsp;&nbsp; 1074<br>
19 1811 CD-32 COMM01 JP-3 LD-102 SB-12 SS-08&nbsp;&nbsp;&nbsp; 779&nbsp; 42.61%&nbsp;&nbsp;&nbsp;&nbsp; 1828<br>
20 1812 CD-32 COMM01 JP-3 LD-102 SB-12 SS-08&nbsp;&nbsp;&nbsp; 585&nbsp; 37.77%&nbsp;&nbsp;&nbsp;&nbsp; 1549<br>
21 1816 CD-32 COMM01 JP-3 LD-102 SB-12 SS-08&nbsp;&nbsp;&nbsp; 311&nbsp; 32.16%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 967<br>
22 1817 CD-32 COMM01 JP-3 LD-102 SB-12 SS-08&nbsp;&nbsp;&nbsp; 528&nbsp; 44.18%&nbsp;&nbsp;&nbsp;&nbsp; 1195<br>
23 1819 CD-32 COMM01 JP-3 LD-102 SB-12 SS-08&nbsp;&nbsp;&nbsp; 338&nbsp; 47.88%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 706<br>
24 1820 CD-32 COMM01 JP-3 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp; 305&nbsp; 70.11%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 435<br>
25 1821 CD-03 COMM01 JP-3 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp; 617&nbsp; 74.07%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 833<br>
26 2115 CD-03 COMM02 JP-2 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp; 14.29%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7<br>
27 2121 CD-03 COMM02 JP-2 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp; 646&nbsp; 50.91%&nbsp;&nbsp;&nbsp;&nbsp; 1269<br>
28 2122 CD-03 COMM02 JP-2 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp; 120&nbsp; 60.00%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 200<br>
29 2126 CD-03 COMM02 JP-2 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp; 511&nbsp; 57.55%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 888<br>
30 2127 CD-03 COMM02 JP-2 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp; 522&nbsp; 41.04%&nbsp;&nbsp;&nbsp;&nbsp; 1272<br>
31 2128 CD-03 COMM02 JP-2 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp; 390&nbsp; 49.49%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 788<br>
32 2129 CD-05 COMM02 JP-2 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp; 243&nbsp; 41.33%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 588<br>
33 2150 CD-03 COMM02 JP-2 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2 100.00%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2<br>
34 2151 CD-05 COMM02 JP-2 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp;&nbsp; 36&nbsp; 38.71%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 93<br>
35 2200 CD-03 COMM02 JP-3 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp; 959&nbsp; 88.39%&nbsp;&nbsp;&nbsp;&nbsp; 1085<br>
36 2204 CD-05 COMM02 JP-3 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp; 363&nbsp; 90.07%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 403<br>
37 2205 CD-03 COMM02 JP-3 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp; 921&nbsp; 90.38%&nbsp;&nbsp;&nbsp;&nbsp; 1019<br>
38 2206 CD-05 COMM02 JP-3 LD-102 SB-12 SS-16&nbsp;&nbsp;&nbsp; 704&nbsp; 45.77%&nbsp;&nbsp;&nbsp;&nbsp; 1538<br>
</small></small><br>
<br>
<br>
Is there any way to move the 100% to the top<br>
when the colorkey legend prints? <br>
<br>
&nbsp;&nbsp;&nbsp; spplot(tx3_sp, c("CK_PCT"), <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; names.attr = c("Carol Kent 2008"),<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; colorkey=list(height=1.0, width=0.6),<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; main = "HD102 - Carol Kent",<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sp.layout = list("sp.text",coordinates(tx3_sp),<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; as.character(tx3_sp$PCT,cex = .02),<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; as.table = TRUE))<br>
<br>
See the attached jpg file. I hope this goes through.<br>
<br>
Forgive my dumb question as I am new to R. I like<br>
R after reading the NYTIMES article last week; <br>
"Data Analysts Mesermized by Power of R". Query<br>
the NYTIMES for this. And read the "Are U Ready<br>
for R" article with its comments as well. <br>
<br>
Thanks,<br>
Jim Burke<br>
<br>
</font><br>
<font face="Courier New, Courier, monospace"><br>
</font>
</body>
</html>