# Plot loadings resulting from fitting a MPPCA model.

### Description

A function to plot the loadings resulting from fitting a MPPCA model to metabolomic data. A barplot or a scatterplot can be produced.

### Usage

1 | ```
mppca.loadings.plot(output, Y, barplot = FALSE, labelsize = 0.3)
``` |

### Arguments

`output` |
An object resulting from fitting a MPPCA model. |

`Y` |
The N x p matrix of observations to which the MPPCA model is fitted. |

`barplot` |
Logical indicating whether a barplot of the loadings is required rather than a scatter plot. By default a scatter plot is produced. |

`labelsize` |
Size of the text of the spectral bin labels on the resulting plot. |

### Details

A function which produces a series of plots illustrating the loadings resulting from fitting a MPPCA model to metabolomic data. A barplot or a scatterplot can be produced. The size of the text of the spectral bin labels on the bar plot can also be adjusted if the number of bins plotted is large.

### Author(s)

Nyamundanda Gift, Isobel Claire Gormley and Lorraine Brennan

### References

Nyamundanda, G., Gormley, I.C. and Brennan, L. (2010) Probabilistic principal components analysis for metabolomic data. Technical report. University College Dublin, Ireland.

### See Also

`mppca.metabol`