dottodot: Dot-to-dot puzzle

Description Usage Format Details Source Examples

Description

A set of points to make a dot-to-dot puzzle

Usage

1

Format

A data frame with 49 observations on the following 4 variables.

x

x position

y

y position

pos

where to put label

ind

number for label

Details

Points to make a dot to dot puzzle to illustrate, text, points, and the argument pos.

Source

Illustration by Noah Verzani.

Examples

1
2
3
4
5
6
7
8
9
data(dottodot)
# make a blank graph
plot(y~x,data=dottodot,type="n",bty="n",xaxt="n",xlab="",yaxt="n",ylab="")
# add the points
points(y~x,data=dottodot)
# add the labels using pos argument
with(dottodot, text(x,y,labels=ind,pos=pos))
# solve the puzzle
lines(y~x, data=dottodot)

jverzani/UsingR documentation built on Aug. 3, 2020, 11:57 a.m.