R version 2.7.0 (2008-04-22) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x <- array(list(227.3 + ,266.4 + ,1943.2 + ,348.3 + ,222.9 + ,304.4 + ,1932.7 + ,331.9 + ,263.6 + ,250.2 + ,2243.7 + ,375.7 + ,208.6 + ,219 + ,1823.4 + ,325.6 + ,242 + ,279.6 + ,1964.6 + ,356.8 + ,245.6 + ,258.8 + ,2125.9 + ,375.6 + ,199.5 + ,266.1 + ,1819.4 + ,295 + ,213.6 + ,266.1 + ,1695.9 + ,282.3 + ,241.9 + ,263.2 + ,1985.7 + ,359.4 + ,242 + ,273.1 + ,1942.1 + ,371.3 + ,230.6 + ,234.9 + ,1866.5 + ,345.7 + ,193.9 + ,277.4 + ,1611.4 + ,272.6 + ,235.5 + ,283.7 + ,1965.5 + ,351.7 + ,228.3 + ,295.9 + ,1983.6 + ,335.2 + ,227.3 + ,328.3 + ,2093.9 + ,362.3 + ,215.7 + ,350.5 + ,2000.1 + ,354.1 + ,219.3 + ,379.9 + ,2011.4 + ,363.5 + ,218 + ,308.8 + ,1984.1 + ,373.8 + ,215.4 + ,324 + ,1929.8 + ,341.4 + ,193.6 + ,340.5 + ,1743.7 + ,286.2 + ,225.7 + ,343.6 + ,2042.1 + ,377 + ,235.8 + ,450.5 + ,2202.8 + ,403.9 + ,211.9 + ,377.2 + ,1891.1 + ,355.8 + ,199.1 + ,383.6 + ,1791.5 + ,291.5 + ,222.5 + ,355.2 + ,2092.9 + ,363 + ,217.9 + ,336 + ,2166.8 + ,349.2 + ,229 + ,388 + ,2279.1 + ,378.8 + ,244.3 + ,393.1 + ,2413.5 + ,401.6 + ,220.8 + ,343.2 + ,2182.4 + ,373.2 + ,234.3 + ,380.5 + ,2330.8 + ,403.9 + ,215.2 + ,408.2 + ,2367.8 + ,382 + ,201.7 + ,342.2 + ,2141 + ,313.3 + ,258.6 + ,356.7 + ,2489.7 + ,420.5 + ,271 + ,403.3 + ,2587.1 + ,450.4 + ,228.7 + ,298.7 + ,2276 + ,375.1 + ,230.3 + ,348 + ,2271.5 + ,343 + ,243.9 + ,340.3 + ,2496.1 + ,405.5 + ,231.3 + ,313.4 + ,2389.1 + ,403.3 + ,276.6 + ,278.7 + ,2673 + ,464.3 + ,256.9 + ,298.7 + ,2489.3 + ,439.6 + ,238 + ,295.8 + ,2362.1 + ,409.5 + ,256.7 + ,292.1 + ,2738.4 + ,449.1 + ,233.8 + ,363.2 + ,2416.5 + ,408.3 + ,199.9 + ,261.2 + ,2251.7 + ,339.4 + ,263.9 + ,259.3 + ,2538.8 + ,443.8 + ,255.6 + ,288.8 + ,2528.8 + ,441.1 + ,237.7 + ,284.5 + ,2279.9 + ,399.7 + ,229.2 + ,257.4 + ,2151.3 + ,348.2 + ,223.9 + ,231.7 + ,2360.5 + ,390.5 + ,235.2 + ,293 + ,2336.1 + ,388.6 + ,290.2 + ,349.3 + ,2820.8 + ,466.7 + ,269.6 + ,310.8 + ,2517.2 + ,440.9 + ,246.3 + ,361.7 + ,2420.6 + ,412.9 + ,287.7 + ,475.9 + ,2777.1 + ,478.1 + ,234.3 + ,422.7 + ,2692.2 + ,421.7 + ,238.3 + ,458.4 + ,2352.1 + ,384 + ,296.7 + ,435.3 + ,2822.6 + ,514.2 + ,282.5 + ,440.7 + ,2819.6 + ,499.3 + ,292.5 + ,382.5 + ,2833.1 + ,469.5 + ,298.9 + ,489.3 + ,2782.3 + ,422.3 + ,284.7 + ,552.9 + ,2664.2 + ,456 + ,309.5 + ,651.5 + ,2799.4 + ,492.2 + ,356.3 + ,643.5 + ,3309.4 + ,549.8 + ,302.6 + ,587.9 + ,2711.5 + ,472.5 + ,345.3 + ,722.9 + ,3061.1 + ,545.2 + ,353.9 + ,566 + ,2865.3 + ,505 + ,297.2 + ,760.6 + ,2639.4 + ,462.8 + ,299.6 + ,642.4 + ,2710.1 + ,439.3 + ,355.8 + ,903.1 + ,3286.8 + ,524.5 + ,348.3 + ,1025.5 + ,3165.4 + ,558 + ,340.5 + ,792.6 + ,2993.4 + ,546.2 + ,310.1 + ,758.4 + ,2737 + ,435.7 + ,323.5 + ,744 + ,3028.9 + ,514 + ,307.9 + ,653.1 + ,3094.9 + ,497.4 + ,354.5 + ,549 + ,3309.4 + ,557.8 + ,298 + ,575.2 + ,2979.6 + ,504.8 + ,306.6 + ,736 + ,3155.8 + ,525.6 + ,302.3 + ,716.4 + ,3138.1 + ,538.1 + ,291.7 + ,747.2 + ,2915.4 + ,480.1 + ,280.7 + ,708.3 + ,2725.1 + ,435.7 + ,311.5 + ,810.4 + ,2912.1 + ,494.1 + ,334 + ,704.1 + ,3266.9 + ,550.1 + ,320.8 + ,619.4 + ,2966.7 + ,491.7 + ,266.4 + ,573.4 + ,2625.1 + ,380.6 + ,318.9 + ,514.4 + ,3156.5 + ,458.3 + ,306.4 + ,507.2 + ,3022 + ,460.3 + ,338.9 + ,608.1 + ,3281.6 + ,511 + ,330.3 + ,632.7 + ,3412.7 + ,521 + ,314.4 + ,715.3 + ,3254 + ,503.7 + ,316 + ,617 + ,3188.1 + ,517.7 + ,310 + ,690.8 + ,3357.6 + ,489.4 + ,272.4 + ,608.5 + ,2851.7 + ,429.4 + ,327.6 + ,712.3 + ,3250.6 + ,515.5 + ,343.9 + ,746.5 + ,3519.2 + ,563.9 + ,315.8 + ,676.4 + ,3181.6 + ,487.8 + ,279.8 + ,681.7 + ,2856.5 + ,384.8 + ,323.7 + ,628.9 + ,3338 + ,490.6 + ,300.6 + ,642.4 + ,3318 + ,483.9 + ,326.8 + ,776 + ,3636 + ,499.8 + ,314.7 + ,767.8 + ,3368 + ,515.3 + ,293.1 + ,611.8 + ,3188 + ,483.4 + ,313.9 + ,716.7 + ,3214.1 + ,521.9 + ,304.7 + ,718.4 + ,3459.2 + ,507.7 + ,269.9 + ,638.1 + ,2821.4 + ,402.5 + ,332.2 + ,630.2 + ,3389.5 + ,537.5 + ,346.5 + ,712.5 + ,3562 + ,572.9 + ,295.8 + ,591.1 + ,3079.1 + ,475 + ,297.9 + ,728.4 + ,3082.9 + ,423.7 + ,304.3 + ,557.3 + ,3127.4 + ,496.1 + ,306.7 + ,597.9 + ,3344.9 + ,507.6 + ,359.2 + ,706.4 + ,3866.1 + ,605.1 + ,325.3 + ,712.6 + ,3460.2 + ,545.3 + ,302.4 + ,711.3 + ,3313.9 + ,506 + ,351.2 + ,553.3 + ,3827.1 + ,599.9 + ,310.8 + ,762.1 + ,3492.5 + ,542.1 + ,289.6 + ,833.1 + ,3287.4 + ,459.3 + ,355.8 + ,798.4 + ,3826.3 + ,599.1 + ,335.5 + ,885.7 + ,4133.4 + ,572.4 + ,332 + ,880.3 + ,3971.7 + ,540.8 + ,310.7 + ,850.8 + ,3588.5 + ,475.9 + ,297.1 + ,747.4 + ,3588.8 + ,532.8 + ,291.9 + ,801 + ,3569.6 + ,538.1 + ,326 + ,983.8 + ,4222.7 + ,599.4 + ,311.8 + ,1004.2 + ,3999.1 + ,588.5 + ,294.5 + ,870.4 + ,3924.7 + ,563.9 + ,330 + ,846.5 + ,3923 + ,619 + ,297.7 + ,889.9 + ,3748.4 + ,537.1 + ,290.3 + ,1103.9 + ,3680.1 + ,503.3 + ,338 + ,1200.9 + ,4146 + ,623.1 + ,319 + ,1182.2 + ,4009.8 + ,595.7 + ,316.3 + ,1073.9 + ,4071.2 + ,611 + ,304.3 + ,1029.8 + ,3651 + ,511.2 + ,305.6 + ,986.4 + ,4073.8 + ,571.9 + ,304 + ,1071.3 + ,3810.6 + ,563.5 + ,353.8 + ,1251.2 + ,4437.9 + ,659.1 + ,308.7 + ,1114.6 + ,3901.6 + ,577.1 + ,325.2 + ,1197.5 + ,4238.9 + ,631.6 + ,337.2 + ,1305.5 + ,4330.3 + ,662.4 + ,304.6 + ,1279.9 + ,3894.1 + ,576.6 + ,320.8 + ,1109.9 + ,4113.9 + ,540.3 + ,327.1 + ,1024.9 + ,4267.9 + ,669.7 + ,360.4 + ,1024.6 + ,4382.2 + ,697.5 + ,346.3 + ,815.2 + ,4277.8 + ,656.5 + ,325.2 + ,853.8 + ,3822.8 + ,525.9 + ,322.9 + ,952.3 + ,4384.2 + ,644.7 + ,337 + ,967.7 + ,4160.6 + ,632 + ,367.8 + ,1065.7 + ,4858.7 + ,732.3 + ,329.7 + ,994.1 + ,4252.6 + ,661.8 + ,333.7 + ,1150 + ,4488.3 + ,683.4 + ,338.1 + ,1110.6 + ,4484.6 + ,736.5 + ,331.1 + ,1129.7 + ,4560.5 + ,662 + ,316 + ,1142.7 + ,4472.2 + ,614.6 + ,343.1 + ,1225.7 + ,4128.9 + ,672.7 + ,374.4 + ,1527.6 + ,4696.4 + ,779.6 + ,343.7 + ,1345.5 + ,4448.7 + ,689.5 + ,283 + ,1508.5 + ,3599.4 + ,521.3 + ,362.7 + ,1608.3 + ,5335.2 + ,718 + ,359.2 + ,1437.8 + ,5031.5 + ,708.8 + ,337.4 + ,1501.2 + ,4998.7 + ,685.2 + ,389.9 + ,1419.3 + ,5439.7 + ,771.1 + ,326.2 + ,1440.7 + ,4797.4 + ,666.3 + ,348.1 + ,1619.2 + ,5110.3 + ,677.9) + ,dim=c(4 + ,162) + ,dimnames=list(c('karton' + ,'olie' + ,'chemie' + ,'rubber') + ,1:162)) > y <- array(NA,dim=c(4,162),dimnames=list(c('karton','olie','chemie','rubber'),1:162)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par4 = 'FALSE' > par3 = 'FALSE' > par2 = 'ALL' > par1 = 'ward' > ylab = 'height' > xlab = 'cases' > main = 'Dendrogram' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > par3 <- as.logical(par3) > par4 <- as.logical(par4) > if (par3 == 'TRUE'){ + dum = xlab + xlab = ylab + ylab = dum + } > x <- t(y) > hc <- hclust(dist(x),method=par1) > d <- as.dendrogram(hc) > str(d) --[dendrogram w/ 2 branches and 162 members at h = 69988] |--[dendrogram w/ 2 branches and 45 members at h = 8957] | |--[dendrogram w/ 2 branches and 8 members at h = 984] | | |--[dendrogram w/ 2 branches and 3 members at h = 526] | | | |--leaf "147" | | | `--[dendrogram w/ 2 branches and 2 members at h = 181] | | | |--leaf "154" | | | `--leaf "161" | | `--[dendrogram w/ 2 branches and 5 members at h = 630] | | |--[dendrogram w/ 2 branches and 3 members at h = 216] | | | |--leaf "162" | | | `--[dendrogram w/ 2 branches and 2 members at h = 78.3] | | | |--leaf "158" | | | `--leaf "159" | | `--[dendrogram w/ 2 branches and 2 members at h = 224] | | |--leaf "157" | | `--leaf "160" | `--[dendrogram w/ 2 branches and 37 members at h = 4407] | |--[dendrogram w/ 2 branches and 14 members at h = 1580] | | |--[dendrogram w/ 2 branches and 8 members at h = 410] | | | |--leaf "114" | | | `--[dendrogram w/ 2 branches and 7 members at h = 302] | | | |--[dendrogram w/ 2 branches and 3 members at h = 90.2] | | | | |--leaf "126" | | | | `--[dendrogram w/ 2 branches and 2 members at h = 65.2] | | | | |--leaf "119" | | | | `--leaf "125" | | | `--[dendrogram w/ 2 branches and 4 members at h = 234] | | | |--[dendrogram w/ 2 branches and 2 members at h = 87.9] | | | | |--leaf "127" | | | | `--leaf "144" | | | `--[dendrogram w/ 2 branches and 2 members at h = 100] | | | |--leaf "111" | | | `--leaf "117" | | `--[dendrogram w/ 2 branches and 6 members at h = 617] | | |--leaf "156" | | `--[dendrogram w/ 2 branches and 5 members at h = 408] | | |--[dendrogram w/ 2 branches and 2 members at h = 81.2] | | | |--leaf "128" | | | `--leaf "132" | | `--[dendrogram w/ 2 branches and 3 members at h = 226] | | |--leaf "139" | | `--[dendrogram w/ 2 branches and 2 members at h = 102] | | |--leaf "134" | | `--leaf "136" | `--[dendrogram w/ 2 branches and 23 members at h = 1938] | |--[dendrogram w/ 2 branches and 7 members at h = 458] | | |--[dendrogram w/ 2 branches and 4 members at h = 110] | | | |--leaf "152" | | | `--[dendrogram w/ 2 branches and 3 members at h = 102] | | | |--leaf "151" | | | `--[dendrogram w/ 2 branches and 2 members at h = 66.4] | | | |--leaf "149" | | | `--leaf "150" | | `--[dendrogram w/ 2 branches and 3 members at h = 133] | | |--leaf "138" | | `--[dendrogram w/ 2 branches and 2 members at h = 100] | | |--leaf "135" | | `--leaf "155" | `--[dendrogram w/ 2 branches and 16 members at h = 1053] | |--[dendrogram w/ 2 branches and 8 members at h = 365] | | |--[dendrogram w/ 2 branches and 4 members at h = 205] | | | |--[dendrogram w/ 2 branches and 2 members at h = 35.4] | | | | |--leaf "141" | | | | `--leaf "148" | | | `--[dendrogram w/ 2 branches and 2 members at h = 97] | | | |--leaf "142" | | | `--leaf "145" | | `--[dendrogram w/ 2 branches and 4 members at h = 229] | | |--leaf "143" | | `--[dendrogram w/ 2 branches and 3 members at h = 136] | | |--leaf "118" | | `--[dendrogram w/ 2 branches and 2 members at h = 72.8] | | |--leaf "123" | | `--leaf "146" | `--[dendrogram w/ 2 branches and 8 members at h = 476] | |--[dendrogram w/ 2 branches and 3 members at h = 125] | | |--leaf "137" | | `--[dendrogram w/ 2 branches and 2 members at h = 58.3] | | |--leaf "129" | | `--leaf "153" | `--[dendrogram w/ 2 branches and 5 members at h = 212] | |--[dendrogram w/ 2 branches and 2 members at h = 78.8] | | |--leaf "124" | | `--leaf "133" | `--[dendrogram w/ 2 branches and 3 members at h = 146] | |--leaf "130" | `--[dendrogram w/ 2 branches and 2 members at h = 90.2] | |--leaf "131" | `--leaf "140" `--[dendrogram w/ 2 branches and 117 members at h = 38622] |--[dendrogram w/ 2 branches and 50 members at h = 6466] | |--[dendrogram w/ 2 branches and 20 members at h = 1194] | | |--[dendrogram w/ 2 branches and 13 members at h = 277] | | | |--[dendrogram w/ 2 branches and 3 members at h = 55.1] | | | | |--leaf "21" | | | | `--[dendrogram w/ 2 branches and 2 members at h = 33.1] | | | | |--leaf "16" | | | | `--leaf "17" | | | `--[dendrogram w/ 2 branches and 10 members at h = 193] | | | |--[dendrogram w/ 2 branches and 7 members at h = 73.8] | | | | |--[dendrogram w/ 2 branches and 2 members at h = 42] | | | | | |--leaf "14" | | | | | `--leaf "18" | | | | `--[dendrogram w/ 2 branches and 5 members at h = 50.6] | | | | |--[dendrogram w/ 2 branches and 2 members at h = 28.1] | | | | | |--leaf "1" | | | | | `--leaf "10" | | | | `--[dendrogram w/ 2 branches and 3 members at h = 35.1] | | | | |--leaf "9" | | | | `--[dendrogram w/ 2 branches and 2 members at h = 9.27] | | | | |--leaf "5" | | | | `--leaf "13" | | | `--[dendrogram w/ 2 branches and 3 members at h = 95.8] | | | |--leaf "23" | | | `--[dendrogram w/ 2 branches and 2 members at h = 23.2] | | | |--leaf "2" | | | `--leaf "19" | | `--[dendrogram w/ 2 branches and 7 members at h = 355] | | |--[dendrogram w/ 2 branches and 3 members at h = 74.5] | | | |--leaf "7" | | | `--[dendrogram w/ 2 branches and 2 members at h = 54.8] | | | |--leaf "4" | | | `--leaf "11" | | `--[dendrogram w/ 2 branches and 4 members at h = 224] | | |--[dendrogram w/ 2 branches and 2 members at h = 64.8] | | | |--leaf "20" | | | `--leaf "24" | | `--[dendrogram w/ 2 branches and 2 members at h = 88] | | |--leaf "8" | | `--leaf "12" | `--[dendrogram w/ 2 branches and 30 members at h = 2023] | |--[dendrogram w/ 2 branches and 14 members at h = 503] | | |--[dendrogram w/ 2 branches and 7 members at h = 175] | | | |--[dendrogram w/ 2 branches and 2 members at h = 40.8] | | | | |--leaf "6" | | | | `--leaf "48" | | | `--[dendrogram w/ 2 branches and 5 members at h = 136] | | | |--[dendrogram w/ 2 branches and 2 members at h = 27.4] | | | | |--leaf "15" | | | | `--leaf "25" | | | `--[dendrogram w/ 2 branches and 3 members at h = 72] | | | |--leaf "32" | | | `--[dendrogram w/ 2 branches and 2 members at h = 29.7] | | | |--leaf "26" | | | `--leaf "29" | | `--[dendrogram w/ 2 branches and 7 members at h = 265] | | |--[dendrogram w/ 2 branches and 4 members at h = 84.2] | | | |--[dendrogram w/ 2 branches and 2 members at h = 30.1] | | | | |--leaf "35" | | | | `--leaf "47" | | | `--[dendrogram w/ 2 branches and 2 members at h = 74.6] | | | |--leaf "3" | | | `--leaf "44" | | `--[dendrogram w/ 2 branches and 3 members at h = 142] | | |--leaf "22" | | `--[dendrogram w/ 2 branches and 2 members at h = 54.2] | | |--leaf "27" | | `--leaf "36" | `--[dendrogram w/ 2 branches and 16 members at h = 705] | |--[dendrogram w/ 2 branches and 6 members at h = 138] | | |--[dendrogram w/ 2 branches and 2 members at h = 27.4] | | | |--leaf "33" | | | `--leaf "37" | | `--[dendrogram w/ 2 branches and 4 members at h = 59.1] | | |--leaf "45" | | `--[dendrogram w/ 2 branches and 3 members at h = 39.7] | | |--leaf "40" | | `--[dendrogram w/ 2 branches and 2 members at h = 28.5] | | |--leaf "46" | | `--leaf "52" | `--[dendrogram w/ 2 branches and 10 members at h = 339] | |--[dendrogram w/ 2 branches and 4 members at h = 90.6] | | |--leaf "49" | | `--[dendrogram w/ 2 branches and 3 members at h = 50.4] | | |--leaf "50" | | `--[dendrogram w/ 2 branches and 2 members at h = 33.5] | | |--leaf "38" | | `--leaf "41" | `--[dendrogram w/ 2 branches and 6 members at h = 179] | |--[dendrogram w/ 2 branches and 3 members at h = 39.8] | | |--leaf "28" | | `--[dendrogram w/ 2 branches and 2 members at h = 14.0] | | |--leaf "43" | | `--leaf "53" | `--[dendrogram w/ 2 branches and 3 members at h = 75.6] | |--leaf "56" | `--[dendrogram w/ 2 branches and 2 members at h = 54.6] | |--leaf "30" | `--leaf "31" `--[dendrogram w/ 2 branches and 67 members at h = 10013] |--[dendrogram w/ 2 branches and 25 members at h = 1524] | |--[dendrogram w/ 2 branches and 10 members at h = 494] | | |--[dendrogram w/ 2 branches and 6 members at h = 191] | | | |--[dendrogram w/ 2 branches and 2 members at h = 35.6] | | | | |--leaf "51" | | | | `--leaf "59" | | | `--[dendrogram w/ 2 branches and 4 members at h = 132] | | | |--[dendrogram w/ 2 branches and 2 members at h = 21.5] | | | | |--leaf "57" | | | | `--leaf "58" | | | `--[dendrogram w/ 2 branches and 2 members at h = 58.7] | | | |--leaf "54" | | | `--leaf "60" | | `--[dendrogram w/ 2 branches and 4 members at h = 226] | | |--[dendrogram w/ 2 branches and 2 members at h = 71.3] | | | |--leaf "39" | | | `--leaf "42" | | `--[dendrogram w/ 2 branches and 2 members at h = 117] | | |--leaf "34" | | `--leaf "55" | `--[dendrogram w/ 2 branches and 15 members at h = 886] | |--[dendrogram w/ 2 branches and 7 members at h = 355] | | |--[dendrogram w/ 2 branches and 3 members at h = 119] | | | |--leaf "67" | | | `--[dendrogram w/ 2 branches and 2 members at h = 59.3] | | | |--leaf "72" | | | `--leaf "80" | | `--[dendrogram w/ 2 branches and 4 members at h = 137] | | |--leaf "84" | | `--[dendrogram w/ 2 branches and 3 members at h = 90] | | |--leaf "68" | | `--[dendrogram w/ 2 branches and 2 members at h = 63.7] | | |--leaf "61" | | `--leaf "64" | `--[dendrogram w/ 2 branches and 8 members at h = 424] | |--[dendrogram w/ 2 branches and 3 members at h = 130] | | |--leaf "86" | | `--[dendrogram w/ 2 branches and 2 members at h = 53] | | |--leaf "76" | | `--leaf "83" | `--[dendrogram w/ 2 branches and 5 members at h = 193] | |--[dendrogram w/ 2 branches and 3 members at h = 80.4] | | |--leaf "96" | | `--[dendrogram w/ 2 branches and 2 members at h = 50.2] | | |--leaf "92" | | `--leaf "104" | `--[dendrogram w/ 2 branches and 2 members at h = 117] | |--leaf "62" | `--leaf "66" `--[dendrogram w/ 2 branches and 42 members at h = 3038] |--[dendrogram w/ 2 branches and 15 members at h = 765] | |--[dendrogram w/ 2 branches and 7 members at h = 201] | | |--[dendrogram w/ 2 branches and 3 members at h = 76.6] | | | |--leaf "95" | | | `--[dendrogram w/ 2 branches and 2 members at h = 41.6] | | | |--leaf "90" | | | `--leaf "101" | | `--[dendrogram w/ 2 branches and 4 members at h = 129] | | |--leaf "85" | | `--[dendrogram w/ 2 branches and 3 members at h = 92.3] | | |--leaf "74" | | `--[dendrogram w/ 2 branches and 2 members at h = 63.2] | | |--leaf "107" | | `--leaf "109" | `--[dendrogram w/ 2 branches and 8 members at h = 358] | |--[dendrogram w/ 2 branches and 2 members at h = 67.8] | | |--leaf "79" | | `--leaf "81" | `--[dendrogram w/ 2 branches and 6 members at h = 230] | |--[dendrogram w/ 2 branches and 3 members at h = 93.7] | | |--leaf "71" | | `--[dendrogram w/ 2 branches and 2 members at h = 54.1] | | |--leaf "65" | | `--leaf "73" | `--[dendrogram w/ 2 branches and 3 members at h = 159] | |--leaf "108" | `--[dendrogram w/ 2 branches and 2 members at h = 29.5] | |--leaf "77" | `--leaf "78" `--[dendrogram w/ 2 branches and 27 members at h = 1777] |--[dendrogram w/ 2 branches and 9 members at h = 336] | |--[dendrogram w/ 2 branches and 4 members at h = 112] | | |--leaf "120" | | `--[dendrogram w/ 2 branches and 3 members at h = 86.7] | | |--leaf "99" | | `--[dendrogram w/ 2 branches and 2 members at h = 57.4] | | |--leaf "121" | | `--leaf "122" | `--[dendrogram w/ 2 branches and 5 members at h = 132] | |--[dendrogram w/ 2 branches and 2 members at h = 43.3] | | |--leaf "103" | | `--leaf "112" | `--[dendrogram w/ 2 branches and 3 members at h = 85.2] | |--leaf "106" | `--[dendrogram w/ 2 branches and 2 members at h = 50.3] | |--leaf "94" | `--leaf "115" `--[dendrogram w/ 2 branches and 18 members at h = 842] |--[dendrogram w/ 2 branches and 3 members at h = 248] | |--leaf "70" | `--[dendrogram w/ 2 branches and 2 members at h = 116] | |--leaf "69" | `--leaf "116" `--[dendrogram w/ 2 branches and 15 members at h = 462] |--[dendrogram w/ 2 branches and 8 members at h = 183] | |--[dendrogram w/ 2 branches and 2 members at h = 28.6] | | |--leaf "88" | | `--leaf "105" | `--[dendrogram w/ 2 branches and 6 members at h = 140] | |--[dendrogram w/ 2 branches and 3 members at h = 53.5] | | |--leaf "110" | | `--[dendrogram w/ 2 branches and 2 members at h = 34.1] | | |--leaf "97" | | `--leaf "98" | `--[dendrogram w/ 2 branches and 3 members at h = 97.2] | |--leaf "75" | `--[dendrogram w/ 2 branches and 2 members at h = 61.9] | |--leaf "63" | `--leaf "87" `--[dendrogram w/ 2 branches and 7 members at h = 244] |--[dendrogram w/ 2 branches and 4 members at h = 61.6] | |--leaf "82" | `--[dendrogram w/ 2 branches and 3 members at h = 49.7] | |--leaf "102" | `--[dendrogram w/ 2 branches and 2 members at h = 18.3] | |--leaf "89" | `--leaf "93" `--[dendrogram w/ 2 branches and 3 members at h = 90.6] |--leaf "100" `--[dendrogram w/ 2 branches and 2 members at h = 51.6] |--leaf "91" `--leaf "113" > mysub <- paste('Method: ',par1) > postscript(file="/var/www/html/rcomp/tmp/14xhs1226438130.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > if (par4 == 'TRUE'){ + plot(d,main=main,ylab=ylab,xlab=xlab,horiz=par3, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8),type='t',center=T, sub=mysub) + } else { + plot(d,main=main,ylab=ylab,xlab=xlab,horiz=par3, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8), sub=mysub) + } > dev.off() null device 1 > if (par2 != 'ALL'){ + if (par3 == 'TRUE'){ + ylab = 'cluster' + } else { + xlab = 'cluster' + } + par2 <- as.numeric(par2) + memb <- cutree(hc, k = par2) + cent <- NULL + for(k in 1:par2){ + cent <- rbind(cent, colMeans(x[memb == k, , drop = FALSE])) + } + hc1 <- hclust(dist(cent),method=par1, members = table(memb)) + de <- as.dendrogram(hc1) + postscript(file="/var/www/html/rcomp/tmp/2yaa81226438130.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) + if (par4 == 'TRUE'){ + plot(de,main=main,ylab=ylab,xlab=xlab,horiz=par3, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8),type='t',center=T, sub=mysub) + } else { + plot(de,main=main,ylab=ylab,xlab=xlab,horiz=par3, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8), sub=mysub) + } + dev.off() + str(de) + } > > #Note: the /var/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Summary of Dendrogram',2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Label',header=TRUE) > a<-table.element(a,'Height',header=TRUE) > a<-table.row.end(a) > num <- length(x[,1])-1 > for (i in 1:num) + { + a<-table.row.start(a) + a<-table.element(a,hc$labels[i]) + a<-table.element(a,hc$height[i]) + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/34w7g1226438130.tab") > if (par2 != 'ALL'){ + a<-table.start() + a<-table.row.start(a) + a<-table.element(a,'Summary of Cut Dendrogram',2,TRUE) + a<-table.row.end(a) + a<-table.row.start(a) + a<-table.element(a,'Label',header=TRUE) + a<-table.element(a,'Height',header=TRUE) + a<-table.row.end(a) + num <- par2-1 + for (i in 1:num) + { + a<-table.row.start(a) + a<-table.element(a,i) + a<-table.element(a,hc1$height[i]) + a<-table.row.end(a) + } + a<-table.end(a) + table.save(a,file="/var/www/html/rcomp/tmp/4m3qp1226438130.tab") + } > > system("convert tmp/14xhs1226438130.ps tmp/14xhs1226438130.png") > system("convert tmp/2yaa81226438130.ps tmp/2yaa81226438130.png") convert: unable to open image `tmp/2yaa81226438130.ps': No such file or directory. convert: missing an image filename `tmp/2yaa81226438130.png'. > > > proc.time() user system elapsed 4.679 0.605 4.818