wlegend.label: wlegend.label

Description Usage Arguments Examples

View source: R/MarkdownReports.R

Description

Quickly add a "text only" legend without a filled color box. to an existing plot, and save the plot immediately. Never inserts an mdlink.

Usage

1
2
3
wlegend.label(legend = "...", poz = 1, cex_ = 1, bty = "n", ...,
  w_ = 7, h_ = w_, title = NULL, ttl.by.varname = F,
  OverwritePrevPDF = UnlessSpec("b.save.wplots"), mdlink = F)

Arguments

legend

Labels displayed (Text)

poz

Position of the legend (def: 4). Use numbers 1-4 to choose from "topleft", "topright", "bottomright", "bottomleft".

cex_

font size

bty

The type of box to be drawn around the legend. The allowed values are "o" (the default) and "n".

...

Additional parameters for legend()

w_

Width of the saved pdf image, in inches.

h_

Height of the saved pdf image, in inches.

title

What should be the title of the legend? NULL by default

ttl.by.varname

Should the title of the legend substituted from the fill_ variable's name? FALSE by default. Does not work if you pass on a list item like this: list$element

OverwritePrevPDF

Save the plot immediately with the same name the last wplot* function made (It is stored in plotnameLastPlot variable).

mdlink

Insert a .pdf and a .png image link in the markdown report, set by "path_of_report".

Examples

1
function(legend = "Hey",poz=4, ..., w_=7, h_=w_, bty = "n", OverwritePrevPDF =T)

vertesy/MarkdownReports.v2.9.5 documentation built on May 22, 2019, 4 p.m.