dottodot {UsingR}R Documentation

Dot-to-dot puzzle

Description

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

Usage

data(dottodot)

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

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)

[Package UsingR version 2.0-7 Index]