Nothing
# plot legend
#'@title Add object specific legends to plots
#'@description Generic function to add a legend to a plot, allowing to for arguments
#'given as simplists.
#'@export
#'@param ... arguments specifying the graphic legend,
#'@details Generic function for plotting legends, intended for use with objects
#'that carry legend information. The default method is a wrapper for the base
#'function \code{\link{legend}}, and allows to use \code{\link{simplist}}s.
#'@seealso \code{\link{legend}} for the usual parameters.
#'@examples
#'# plot some curves
#'plot(cos, col = "red", to = pi, ylab = "y")
#'plot(sin, col = "green", to = pi, add = TRUE)
#'# use of simplists:
#'legendstuff <- simplist(legend = c("y = sin(x)", "y = cos(x)"), col = c("green", "red"))
#'plotlegend("bottomleft", legendstuff, lty = "solid")
plotlegend <- function(...) UseMethod("plotlegend")
#'@rdname plotlegend
#'@export
#
plotlegend.default <- function (...)
{
do.call(splot, c(simplist(...), .plotmethod = "legend"))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.