bpDF: bpDF Boxploting one or two whole dataframes with variables...

Description Usage Arguments Examples

View source: R/bpDF.R

Description

bpDF Boxploting one or two whole dataframes with variables and means

Usage

1
2
3
4
bpDF(df, df2 = NULL, df.name = "", df2.name = "",
  bpVarNames = names(df), bpTitle = names(df), bpSubtitle = "Subtitle",
  bpSkala = NULL, nlevels = max(df[1]), colors = brewer.pal(5, "Greens"),
  bg = colors[1], bpCite = paste("<c2><a9> @muuksi", lubridate::today()), ...)

Arguments

df

a data.frame with variables

df2

the second dataframe if desired

df.name

A string to plot left for identifiying the data

df2.name

For the second dataframe

bpVarNames

Variable names. Ideally the whole question

bpTitle

The title

bpSubtitle

The subtitle

bpSkala

The scale: A list with strings

nlevels

How many levels have the variables?

colors

Colors for means. A list with five colors

bg

Color for the background. Defaults to first color in colors

bpCite

The source of the Data or copyrigth notice

...

Params passing througth to boxplot(...)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
formulierungen <- c("Ich bef<c3><bc>rworte es, wenn die Stadt versucht, \nbei der Stra<c3><9f>en- und Gehwegbeleuchtung \nStrom zu sparen.",
                     "Es ist gut, wenn die Stadt versucht,\n in den <c3><b6>ffentlichen Geb<c3><a4>uden \nEnergie zu sparen.",
                     "Die Stadt sollte versuchen, \n sich auf neunen Wegen \nf<c3><bc>r den Klimaschutz einzusetzen.")
bpTitle = "M<c3><b6>glichkeiten der Energieeinsparung"
bpSubtitle = ""
bpSkala = c("Trifft <c3><bc>berhaupt nicht zu", "Trifft <c3><bc>berwiegend zu", "Trifft eher zu", "Trifft gerade noch zu", "Trifft <c3><bc>berwiegend zu", "Trifft voll und ganz zu")
bpCite=paste("<c2><a9> @muuksi",lubridate::today(),"| Quelle: M.Hinse & F.L<c3><bc>dicke, Saarlouis-Steinrausch // IZES.de")
nlevels=6
df = LED.df

# Funktion aufrufen
bpDF(df, bpVarNames, bpTitle, bpSubtitle="LED", bpSkala, nlevels, color, bpCite)


bpDF(KONV.df, df2 = LED.df, df.name = "HQL", df2.name="LED", bpTitle=bpTitle, bpSubtitle = bpSubtitle, bpVarNames = formulierungen, bpSkala = bpSkala, nlevels = 6, bpCite = bpCite)

muuksi/bici documentation built on May 23, 2019, 10:53 a.m.