plot_years | R Documentation |

Plot the years measure obtained from the `years`

function.

plot_years( years, xlab = "Time interval", ylab = "Years", xbreak, ybreak, xlimits, ylimits, conf.int = TRUE, ymirror = FALSE, yminus = FALSE )

`years` |
the object obtained using function |

`xlab` |
a title for the x axis. |

`ylab` |
a title for the y axis. |

`xbreak` |
the breaks on the x axis (this is supplied to |

`ybreak` |
the breaks on the y axis (this is supplied to |

`xlimits` |
define the limits on the x axis (this is supplied to |

`ylimits` |
define the limits on the y axis (this is supplied to |

`conf.int` |
if TRUE, the confidence interval is plotted. |

`ymirror` |
mirror the y values (w.r.t. the x axis). |

`yminus` |
use function y -> -y when plotting. |

A ggplot2 implementation for plotting the years measure. The type of curve is
dependent upon the measure calculated using the `years`

function (argument `measure`

).

A ggplot object

`years`

, `plot_f`

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.