Description Usage Arguments See Also Examples

Draws boxplots for y by binning on x. This gives a coarse, but quick, representation of the conditional distrubtion of [Y|X] in terms of boxplots.

1 2 |

`x` |
Vector to use for bin membership |

`y` |
Vector to use for constructing boxplot statistics. |

`N` |
Number of bins on x. Default is 10. |

`breaks` |
Break points defining bin boundaries. These can be unequally spaced. |

`plot` |
If FALSE just returns a list with the statistics used for plotting the box plots, bin centers, etc. – More stuff than you can imagine! |

`... ` |
Any other optional arguments passed to the standard |

bplot, draw.bplot

1 2 3 4 5 6 7 8 9 10 11 12 13 | ```
# condition on swim times to see how run times vary
bplot.xy( minitri$swim, minitri$run, N=5)
# bivariate normal corr= .8
set.seed( 123)
x<-rnorm( 2000)
y<- .8*x + sqrt( 1- .8**2)*rnorm( 200)
#
bplot.xy(x,y)
#
bplot.xy( x,y, breaks=seq( -3, 3,,25) ,
xlim =c(-4,4), ylim =c(-4,4), col="grey80", lwd=2)
points( x,y,col=3, cex=.5)
``` |

```
Loading required package: spam
Loading required package: dotCall64
Loading required package: grid
Spam version 2.1-1 (2017-07-02) is loaded.
Type 'help( Spam)' or 'demo( spam)' for a short introduction
and overview of this package.
Help for individual functions is also obtained by adding the
suffix '.spam' to the function name, e.g. 'help( chol.spam)'.
Attaching package: 'spam'
The following objects are masked from 'package:base':
backsolve, forwardsolve
Loading required package: maps
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.