Description Usage Arguments Value Author(s) See Also Examples

Fit a loess line using the hexagon centers of mass as the x and y coordinates and the cell counts as weights.

1 2 | ```
hexMA.loess(pMA, span = 0.4, col = "red", n = 200)
hexVP.loess(hbin, hvp = NULL, span = 0.4, col = "red", n = 200)
``` |

`hbin` |
an object of class |

`hvp` |
A |

`pMA` |
the list returned by |

`span` |
the parameter alpha which controls the degree of smoothing. |

`col` |
line color for the loess fit. |

`n` |
number of points at which the fit should be evaluated. |

Returns invisibly the object associated with the loess fit.

Nicholas Lewin-Koh

`hexVP.abline`

, `plotMAhex`

,
`gplot.hexbin`

, `hexViewport`

;
`loess`

1 2 3 4 5 6 7 | ```
if(require(marray)){
data(swirl)
hb <- plotMAhex(swirl[,1], main = "M vs A plot with hexagons", legend=0)
hexVP.abline(hb$plot, h=0, col= gray(.6))
hexMA.loess(hb)
}
``` |

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.