dottodot | R Documentation |
A set of points to make a dot-to-dot puzzle
data(dottodot)
A data frame with 49 observations on the following 4 variables.
x position
y position
where to put label
number for label
Points to make a dot to dot puzzle to illustrate,
text
, points
, and the argument pos
.
Illustration by Noah Verzani.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.