-
Notifications
You must be signed in to change notification settings - Fork 7
Function Overview
vertesy edited this page Sep 11, 2017
·
6 revisions
You find the list of 54 functions of this library below.
For details, please use the help()
function, or browse the source code.
- Internal Function. Parses the full path from the filename & location of the file.
- Tries to close R graphical devices without raising an error.
- Internal function. Creates the string written into the PDF files "Title' (metadata) field
- Collapses values and strings to one string (without a white space). It also prints the results (good for a quick check)
- Take the right substring of a string
- A more intelligent printing function that collapses any variable passed to it by white spaces.
- Rounds a value to the significant amount of digits. Its a wrapper for signif().
- Parse a string of 0-100% from a number between 0 and 1.
- Setup the markdown report file and the output directory, create a sub directory in "OutDir". Its name is stamped with the script name and the modification time. Create the "path_of_report" variable used by all log-writing and ~wplot functions.
- Create or set the output directory of the script, and set the "OutDir" variable that is used by all ~wplot functions.
- Setup the markdown report file, create a sub directory in "OutDir". Its name is stamped with the script name and the modification time. Create the "path_of_report" variable used by all log-writing and ~wplot functions.
- Continue writing to an existing report file.
- Log the parameters & settings used in the script and stored in a list, in a table format in the report.
- Log the parameters & settings used in the script in a table format.
- Collapse by white spaces a sentence from any variable passed on to the function. Print the sentence to the screen and write it to your markdown report file, if the "path_of_report" variable is defined.
- Collapse by white spaces a sentence from any variable passed on to the function. llogit() writes it to your markdown report file, if the "path_of_report" variable is defined. It does not print the sentence to the screen.
- Format a markdown image reference (link) from the file path to the file. It can parse the file path, if you pass it in separate variables and strings. E.g. MarkDown_ImgLink_formatter(Directory, "MyImage.png").
- Format a markdown image reference (link) to a .pdf and .png versions of graph, and insert both links to the markdown report, set by "path_of_report". If the "png4Github" variable is set, the .png-link is set up such, that you can upload the whole report with the .png image into your GitHub repo's wiki, under "Reports"/OutDir/ (Reports is a literal string, OutDir is the last/deepest directory name in the "OutDir" variable. See create_set_OutDir() function.). This function is called by the ~wplot functions.
- Take an R data frame with row- and column- names, parse a markdown table from it, and write it to the markdown report, set by "path_of_report".
- Take an R vector with names, parse a markdown table from it, and write it to the markdown report, set by "path_of_report".
- Create and save scatter plots as .pdf, in "OutDir". If mdlink =T, it inserts a .pdf and a .png link in the markdown report, set by "path_of_report". The .png version is not created, only the link is put in place, not to overwrite previous versions. The .png version is not created, only the link is put in place. You can add 2D error bars around the dots, or add lines (ablines) to your plot, by setting "abline" argument to = F (no line, default), "h" (horizontal, further specified by a = y-offset), "v" (vertical, further specified by a = x-offset), "ab" (line with an angle, further specified by a = offset, b = slope).
- A scatterplot with color gradient and color legend.
- Internal function. Creates automatic plot and file-names.
- Save the currently active graphic device (for complicated plots). Insert links to your markdown report, set by "path_of_report". Name the file by naming the variable!
- Create and save histograms as .pdf, in "OutDir". If mdlink =T, it inserts a .pdf and a .png link in the markdown report, set by "path_of_report". The .png version is not created, only the link is put in place, not to overwrite previous versions. Name the file by naming the variable! Cannot be used with dynamically called variables [e.g. call vectors within a loop]. "filtercol" assumes >= coloring!
- Create and save bar plots as .pdf, in "OutDir". If mdlink =T, it inserts a .pdf and a .png link in the markdown report, set by "path_of_report". The .png version is not created, only the link is put in place, not to overwrite previous versions.
- Create and save box plots as .pdf, in "OutDir". If mdlink =T, it inserts a .pdf and a .png link in the markdown report, set by "path_of_report". The .png version is not created, only the link is put in place, not to overwrite previous versions.
- Create and save pie charts as .pdf, in "OutDir". If mdlink =T, it inserts a .pdf and a .png link in the markdown report, set by "path_of_report". The .png version is not created, only the link is put in place, not to overwrite previous versions.
- Create and save strip charts as .pdf, in "OutDir". If mdlink =T, it inserts a .pdf and a .png link in the markdown report, set by "path_of_report". The .png version is not created, only the link is put in place, not to overwrite previous versions.
- Create and save stripcharts from a list as .pdf, in "OutDir". This version allows individual coloring of each data point, by a color-list of the same dimension. If mdlink =T, it inserts a .pdf and a .png link in the markdown report, set by "path_of_report". The .png version is not created, only the link is put in place, not to overwrite previous versions.
- Create and save violin plots as .pdf, in "OutDir". It requires (and calls) "vioplot" package. If mdlink =T, it inserts a .pdf and a .png link in the markdown report, set by "path_of_report". The .png version is not created, only the link is put in place, not to overwrite previous versions.
- Create and save violin plots as .pdf, in "OutDir". It requires (and calls) "vioplot" package. If mdlink =T, it inserts a .pdf and a .png link in the markdown report, set by "path_of_report". The .png version is not created, only the link is put in place, not to overwrite previous versions.
- Use this version of whist() if you iterate over columns or rows of a data frame. You can name the file by naming the variable. Cannot be used with dynamically called variables [e.g. call vectors within a loop]
- Two back-to-back histograms from a list. The X-axis is only correct if breaks1 ==breaks2. Undeveloped function, contains graphical bugs, no support for this function.
- wbarplot for a column of a data frame.
- This function converts a vector of values("yourdata") to a vector of color levels. One must define the number of colors. The limits of the color scale("zlim") or the break points for the color changes("breaks") can also be defined. when breaks and zlim are defined, breaks overrides zlim. Source: http://menugget.blogspot.nl/2011/09/converting-values-to-color-levels.html
- Save venn diagrams. Unlike other ~vplot funcitons, this saves directly into a .png, and it does not use the dev.copy2pdf() function.
- Put error bars on top of your bar plots. This functionality is now integrated into MarkdownReporter's wbarplot() function
- Add extra labels to your bar plots at the top or the base.
- Create an expression with subscript for axis labels. Parsed when provided to xlab or ylab of a function.
- Create an expression with superscript for axis labels. Parsed when provided to xlab or ylab of a function.
- Filter values that fall between above high-pass-threshold (X >).
- Filter values that fall below the low-pass threshold (X <).
- Filter values that fall above high-pass-threshold !(X >=)! and below the low-pass threshold (X <).
- Print a list, one element per line, into your markdown report
- Quickly add a legend to an existing plot, and save the plot immediately.
- Extract unique entries with a corresponding name.
- Create or set the output directory of the script, and set the "NewOutDir" variable that is used by all ~wplot functions.
- Add linear regression, and descriptors to line to your scatter plot. Provide the same dataframe as you provided to wplot() before you called this function
- Create a string from the names of the (boolean) parameters (T or F) of true values. Use it for Suffixing plot names with the parameters that were used for that plot.
- Create A4 PDFs to plot multiple subplots in one file
- Create A4 PDFs to plot multiple subplots in one file with custom numbers of columns in each row
- pair of the "pdfA4plot_on()" function; to finish plotting in the A4 pdf.
- Generate color palettes. Input: a vector with categories, can be numbers or strings. Handles repeating values. Output: color vector of equal length as input. Optionally it can ouput a list where an extra element lists the categories (simply using unique would remove the names). See example.