# clickjoin

0th

Percentile

##### Interactively join vertices on a plot

Given a point pattern representing a set of vertices, this command gives a point-and-click interface allowing the user to join pairs of selected vertices by edges.

Keywords
spatial, datagen
##### Usage
clickjoin(X, ..., add = TRUE, m = NULL, join = TRUE)
##### Arguments
X
Point pattern of vertices. An object of class "ppp".
...
Arguments passed to segments to control the plotting of the new edges.
Logical. Whether the point pattern X should be added to the existing plot (add=TRUE) or a new plot should be created (add=FALSE).
m
Optional. Logical matrix specifying an initial set of edges. There is an edge between vertices i and j if m[i,j] = TRUE.
join
Optional. If TRUE, then each user click will join a pair of vertices. If FALSE, then each user click will delete an existing edge. This is only relevant if m is supplied.
##### Details

This function makes it easier for the user to create a linear network or a planar graph, given a set of vertices. The function first displays the point pattern X, then repeatedly prompts the user to click on a pair of points in X. Each selected pair of points will be joined by an edge. The function returns a logical matrix which has entries equal to TRUE for each pair of vertices joined by an edge.

The selection of points is performed using identify.ppp which typically expects the user to click the left mouse button. This point-and-click interaction continues until the user terminates it, by pressing the middle mouse button, or pressing the right mouse button and selecting stop.

The return value can be used in linnet to create a linear network.

##### Value

• Logical matrix m with value m[i,j] = TRUE for every pair of vertices X[i] and X[j] that should be joined by an edge.

linnet, clickppp
{"ft_lang_label":"__label__en","ft_lang_prob":0.7818367,"math_prob":0.8810844,"size":1753,"snap":"2019-43-2019-47","text_gpt3_token_len":417,"char_repetition_ratio":0.12521441,"word_repetition_ratio":0.025477707,"special_character_ratio":0.22589846,"punctuation_ratio":0.11849711,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9906179,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-23T03:07:00Z\",\"WARC-Record-ID\":\"<urn:uuid:e65584ef-c1bc-43c7-92dc-ad396b52ccb5>\",\"Content-Length\":\"16017\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:fcae0c20-36f4-49ec-97d6-61dd2b8ec98c>\",\"WARC-Concurrent-To\":\"<urn:uuid:3f1234a2-da99-4324-b3b2-a7e0bb09d76d>\",\"WARC-IP-Address\":\"34.238.223.233\",\"WARC-Target-URI\":\"https://www.rdocumentation.org/packages/spatstat/versions/1.37-0/topics/clickjoin\",\"WARC-Payload-Digest\":\"sha1:4PS45IX64BO32T75UAHW7S6OV2XSTDJM\",\"WARC-Block-Digest\":\"sha1:7GNYS2SZMYHKWPCBK2MW5H4XO5DFRU22\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496672313.95_warc_CC-MAIN-20191123005913-20191123034913-00225.warc.gz\"}"}