R/plot_vectordistribution.R
    plot.VectorDistribution.RdHelper function to more easily plot distributions inside a VectorDistribution.
# S3 method for class 'VectorDistribution'
plot(x, fun = "pdf", topn, ind, cols, ...)function to plot, one of: "pdf","cdf","quantile", "survival", "hazard", "cumhazard".
integer. First n distributions in the VectorDistribution to plot.
integer. Indices of the distributions in the VectorDistribution to plot. If given
then topn is ignored.
character. Vector of colours for plotting the curves. If missing 1:9 are used.
Other parameters passed to plot.Distribution.
If topn and ind are both missing then all distributions are plotted if there are 10 or less
in the vector, otherwise the function will error.