Creates a histogram showing distribution of fold differences in abundance of parasites between left and right sides of host.

1 | ```
plotHistogram(x, nBreaks = 10, ...)
``` |

`x` |
a matrix or data frame with two numeric columns; first column is for left-side and 2nd column for right-side. Identifiers for hosts can be provided as row names. |

`nBreaks` |
number of cells for the histogram. A suggestion only; breakpoints will be set to pretty values. |

`...` |
optional further arguments and graphical parameters passed to plot. |

plot.Histogram creates a histogram showing distribution of fold differences in abundance of parasites between left and right sides. For each infected host the number of parasites on the right side is divided by the number of parasites on the left side, and the result binary log transformed. The log2 ratio will be negative if there are more parasites on the left than right and positive if there are more parasites on the right than left. A log2 ratio of one corresponds to a one-fold difference, i.e. double the number of parasites. Perfect symmetry is a log2 ratio of zero.

1 2 3 | ```
plotHistogram(diplostomum_eyes_excl_lenses)
plotHistogram(diplostomum_eyes_excl_lenses,nBreaks=20,
main="Diplostomum metacercariae in eyes of ruffe")
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.