plotHistogram {aspi} | R Documentation |

## Plot histogram

### Description

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

### Usage

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

### Arguments

`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. |

### Details

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.

### Examples

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

*aspi*version 0.2.0 Index]