pplot_tree {lazy.cluster} R Documentation

## Profile Plot of the Observations in Each Cluster

### Description

Profile Plot of the Observations in Each Cluster

### Usage

```pplot_tree(data = NULL, tree = NULL, ncl = 2, title = NULL,
xaxp = NULL, xlim = NULL, ylim = NULL, xlab = NULL, ylab = NULL,
lwd = 2, pch = c(1:9, 0, letters[1:26], LETTERS[1:26]), lty = 1:5,
col = 1:8, legend = "bottomleft")
```

### Arguments

 `data` Data frame `tree` An class hclust object `ncl` A vector of the number of clusters `title` A title string to be printed at the top of the plot `xaxp` x tick mark locations of the form c( from, to, # of intervals) `xlim` Horizontal axis spec: of the form c( min, max ) : Default is c(1,ncl) `ylim` Vertical axis spec: of the form c( min, max ) `xlab` Horizontal axis label `lwd` Vector of the width of the lines `pch` Vector of the symbols in the lines `lty` Vector of the types of the lines `col` Vector of the colors of the lines `legend` The location of the legend or NULL. `ykab` Vertical axis label

### Details

This function creats, for each of ncl clusters, profile plot of the observations in each of cluster.

When legend overlapps the plot, try legend="topleft". Or, use legend="" and add legend manually by controlling ylim parameter.

### Examples

```
Y <- demodata[,1:8]
set.seed(1701)
resY2 <- hclust( dist(Y) )
pplot_tree( Y, resY2, 3, title="Main Result", ylim=c(-2,10) )
resY3 <- dhclust( Y, maxclustersize=3 )
pplot_tree( Y, resY3\$tree_l, 3, title="from Large", ylim=c(-2,10) )
pplot_tree( Y, resY3\$tree_s, 3, title="from Short", ylim=c(-2,10) )

```

[Package lazy.cluster version 0.1.2 Index]
{"ft_lang_label":"__label__en","ft_lang_prob":0.5856414,"math_prob":0.9640485,"size":1483,"snap":"2019-51-2020-05","text_gpt3_token_len":490,"char_repetition_ratio":0.15348208,"word_repetition_ratio":0.036764707,"special_character_ratio":0.3344572,"punctuation_ratio":0.1826923,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9603094,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-12-15T17:51:59Z\",\"WARC-Record-ID\":\"<urn:uuid:366ee83c-c73e-4894-953f-2532e8c0b723>\",\"Content-Length\":\"3457\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b256c77d-4f83-4e66-81a2-517cafea7a83>\",\"WARC-Concurrent-To\":\"<urn:uuid:73f67250-5f80-48d3-b8c7-7f9b2d48e78e>\",\"WARC-IP-Address\":\"210.131.2.30\",\"WARC-Target-URI\":\"http://mayekawa.in.coocan.jp/Rpackages/HTML_help/lazy.cluster/pplot_tree.html\",\"WARC-Payload-Digest\":\"sha1:MEXLLNY2FICP7SPC5O4LMJ3VZUZFRS4H\",\"WARC-Block-Digest\":\"sha1:KMAUFF3IYMAFLOGHMHOTTUZQ3PP76JFC\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-51/CC-MAIN-2019-51_segments_1575541309137.92_warc_CC-MAIN-20191215173718-20191215201718-00252.warc.gz\"}"}