R/wordfeud_scatterplot.R

Defines functions wordfeud_scatterplot

Documented in wordfeud_scatterplot

# Relation between number of tiles and score
# The more tiles you use, the higher the score
wordfeud_scatterplot=function(){ggplot(data.frame(x=tapply(nchar(wf$used),wf$start,sum),
                  y=tapply(wf$points,wf$start,sum)),
                  aes(x=x,y=y,col=y)) + geom_point() +xlab("Number of tiles") + ylab("Total score") + 
   geom_vline(aes(xintercept=52))}
vdweijer/games documentation built on Dec. 23, 2021, 3:02 p.m.