Description Usage Arguments Examples
Draw a Wilkinson dot plot
| 1 2 3 | 
| data | a data.frame | 
| xvar | A character string of column name be used as a x-axis variable | 
| yvar | A character string of column name be used as a y-axis variable. | 
| fillvar | A character string of column name be used as a fill variable. Default value is NULL | 
| stackdir | which direction to stack the dots. "up" (default), "down", "center", "centerwhole" (centered, but with dots aligned) | 
| binaxis | The axis to bin along, "x" (default) or "y" | 
| binwidth | When method is "dotdensity", this specifies maximum bin width. When method is "histodot", this specifies bin width. Defaults to 1/30 of the range of the data | 
| method | "dotdensity" (default) for dot-density binning, or "histodot" for fixed bin widths (like stat_bin) | 
| position | Position adjustment. If 0, no adjustment. | 
| boxwidth | The width of boxplot | 
| boxfill | Fill color of boxplot | 
| ... | other arguments passed on to geom_dotplot | 
| 1 2 3 4 5 6 7 8 | require(ggplot2)
require(gcookbook) # for data heightweight
require(moonBook) #for use data radial
ggDot(radial,yvar="height",xvar="sex",fillvar="sex",boxfill="white",position=0,binwidth=1,boxwidth=1)
ggDot(heightweight,yvar="heightIn",xvar="sex",binwidth=0.4)
ggDot(radial,xvar="height",fillvar="sex",binwidth=1)
ggDot(heightweight,xvar="heightIn")
ggDot(heightweight,xvar="heightIn",fillvar="sex")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.