Learn R Programming

UsingR (version 2.0-7)

dottodot: Dot-to-dot puzzle

Description

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

Usage

data(dottodot)

Arguments

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.

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab