Tag: function
- R - website visualize all ggplot2 palettes and displays (ggthemes, ggparallel, ggtern, (em>waffle, xkcd) (10 Feb 2021)
- R - draw upset plots and nice Venn diagrams with ComplexUpset (10 Feb 2021)
- R - set vector length with length() (10 Feb 2021)
- R - run length encoding with rle() (10 Feb 2021)
- R - NMA matrix visualization with nmaplateplot package (10 Feb 2021)
- R - draw multiple gauge plots (10 Feb 2021)
- R - merge and update two lists into one with modifyList() (10 Feb 2021)
- R - draw flowchart and transition class with Gmisc package (10 Feb 2021)
- R - ggalt extension for ggplot2 (10 Feb 2021)
- R - plot overlaying points (sunflowerplot(), jitter() and transparency) (10 Feb 2021)
- R - draw circle plots with packcircles and ggplot2 (10 Feb 2021)
- R - draw Sankey diagrams with Panta Rhei (10 Feb 2021)
- R - coalesce 2 vectors with dplyr::coalesce() (10 Feb 2021)
- R - bivariate color palette (pals package) (10 Feb 2021)
- R - draw alluvial plots with ggalluvial (10 Feb 2021)
- R - extract names from expression with all.names() and all.vars() (10 Feb 2021)
- R - 3D plots with rayshader package (10 Feb 2021)
- R - some R tricks: sloop, microbenchmark() and gc() (02 Jul 2020)
- R - sloop package to explore S3 (02 Jul 2020)
- R - rpart() to fit and rpart.plot() for fitting and visualizing decision trees (02 Jul 2020)
- Table with functions in Robinson's screencasts (02 Jul 2020)
- R - format() for pretty printing (02 Jul 2020)
- alist() to not evaluate the values (02 Jul 2020)
- R - map() and helper functions from purrr package (02 Jul 2020)
- R - information theory metrics for numerical matrices with rasterdiv package (02 Jul 2020)
- R - qplot() for drawing quick ggplot2 plots (01 Jul 2020)
- Latex - newcommand and newenvironnement (01 Jul 2020)
- Bash - execute a function before exiting a script (01 Jul 2020)
- R - draw Tendril plots with the Tendril package (30 May 2020)
- R - suppressPackageStartupMessages() (30 May 2020)
- R - draw sinaplots with geom_sina() from ggforce package (30 May 2020)
- R - save and replay base plots with recordPlot() and replayPlot() (30 May 2020)
- R - reshape() - direction wide (30 May 2020)
- R - rcorr(): correlations for whole dataset (30 May 2020)
- R - paste plots from R to Word with devEMF package (30 May 2020)
- R - draw mosaic plots with mosaic() from vcd package (30 May 2020)
- R - draw mosaic plots with geom_mosaic() from ggmosaic package (30 May 2020)
- R - improved text rendering of ggplot2 plots with mdthemes package (30 May 2020)
- R - draw hybrid ggplot2 plots with gghalves (30 May 2020)
- R - improved text rendering of ggplot2 plots with ggtext package (30 May 2020)
- R - geom_star() from ggstar provide star shapes for ggplot2 (30 May 2020)
- R - use function to directly change axis labels in ggplot2 (30 May 2020)
- R - draw balloon plots with ggballoonplot() from ggpubr (30 May 2020)
- R - difference between geom_bar() and geom_col() in ggplot2 (30 May 2020)
- R - draw genes in ggplot2 plots with gggenes (30 May 2020)
- R - distribution plots with geo_fan() from ggfan package (30 May 2020)
- R - plot distributions with plot_distr() from fplotpackage (30 May 2020)
- R - usage of cut(), hist() and findInterval() (30 May 2020)
- R - draw correlogram, adapted from corrplot() (30 May 2020)
- R - YaRrr package: colors in R and transparent() (30 May 2020)
- R - colorRampPalette(): create palette and assign colors for a vector of continuous values (30 May 2020)
- R - draw balloon plots with ggballoonplot() from ggpubr (30 May 2020)
- R - labels() (09 Dec 2019)
- R - stack() and unstack() (14 Aug 2019)
- R - Reduce(): combine values of vectors by applying a function (14 Aug 2019)
- Pie charts with ggplot in R and pd.plot in Python (14 Aug 2019)
- R - parallel package: socket or fork (14 Aug 2019)
- R - nextn(): highly composite numbers (14 Aug 2019)
- R - lengths(): get length of element of a list efficiently (14 Aug 2019)
- R - get(): retrieve value of a named object (14 Aug 2019)
- R - fread(): highly composite numbers (14 Aug 2019)
- R - Find() and Position() give the first or last element and its position in the vector that gives true for the logical function (14 Aug 2019)
- R - Filter() extract elements matching a logical function (14 Aug 2019)
- R - combn() and expand.grid() to generate combinations (14 Aug 2019)
- R - data.table for dummies (14 Aug 2019)
- R - choose(): number of combinations (14 Aug 2019)
- R - eval() and bquote() to call lm() with named variables (14 Aug 2019)
- R - create objects with structure() (31 May 2019)
- R - send email from command line or from R (emayili package) (31 May 2019)
- R - save datasets (save(),saveRDS(), write.table(), WriteXLS()) (31 May 2019)
- R - S3 objects and generic methods (31 May 2019)
- R - reverse a string (31 May 2019)
- R - examples and usage of regular expressions (31 May 2019)
- R - sjPlot package - Likert-plots (31 May 2019)
- R - ways to debug R code interactively (31 May 2019)
- R - animated ggplot2 plots (transition_reveal()) (31 May 2019)
- R - plots (interactive charts) with chartbookR package (31 May 2019)
- R - unlink() to delete file(s) or directory(ies) (27 Dec 2018)
- R - directory manipulation with list.dirs() and dir.<...>() functions (27 Dec 2018)
- R - file manipulation with list.files() and file.<...>() functions (27 Dec 2018)
- R - vapply(): safer version of sapply() (25 Dec 2018)
- R - trim strings with trimws() (25 Dec 2018)
- R - trim strings with strtrim() (25 Dec 2018)
- R - symbolic number coding with symnum() (25 Dec 2018)
- R - substring(): wrapper for substr() (25 Dec 2018)
- R - string to integer conversion with strtoi() (25 Dec 2018)
- R - check start (startsWith()) and end (endsWith()) of a string (25 Dec 2018)
- R - slot() related functions (25 Dec 2018)
- R - reshape() data frame to wide/long format (25 Dec 2018)
- R - read gz files using read.table(gzfile(...)) (25 Dec 2018)
- R - rapply(): recursively apply function to list (25 Dec 2018)
- R - string quote function (sQuote(), dQuote()) (25 Dec 2018)
- R - pattern matching with gregexpr() (25 Dec 2018)
- R - nzchar(): find non empty strings (25 Dec 2018)
- R - adist() to compute Levenshtein distance between strings (25 Dec 2018)
- R - conversion between encodings with iconv() (25 Dec 2018)
- R - custom character translation (chartr()) (25 Dec 2018)
- R - casefold() as a wrapper for tolower() and toupper() (25 Dec 2018)
- R - abbreviate strings with abbreviate() (25 Dec 2018)
- R - example of S4 class definition (25 Dec 2018)
- R - rollmean() and other rolling functions from zoo package (03 Oct 2018)
- R - different ways to pass a formula to lm() (03 Oct 2018)
- R - by-group calculation with Map() and mcMap() (03 Oct 2018)
- R - ggpol package, parliament diagram and other extensions of ggplot2 (e.g. mix box/scatterplots) (03 Oct 2018)
- R - factorial design plot with afex_plot() from afex package (03 Oct 2018)
- R - color palettes with GetTolColors() from inlmisc package (03 Oct 2018)
- R - add marginal plots in the margin of a plot (13 Aug 2018)
- R - formalArgs() and args(): functions retrieve the formal arguments of a function (13 Aug 2018)
- R - wrap string with strwrap() (03 Jun 2018)
- R - tileGenome() function to partition genome (from GenomicRanges package) (03 Jun 2018)
- R - use of switch() function (03 Jun 2018)
- R - scatter plot with marginal boxplots in ggplot2 (03 Jun 2018)
- R - retrieve the code of a function using getAnywhere(), methods(), getMethod() and showMethods() functions (03 Jun 2018)
- R - remove Excel sheet passwords with R (03 Jun 2018)
- R - get input form user using readline() function (03 Jun 2018)
- R - math symbols in plots with plotmath (03 Jun 2018)
- R - links to functions and packages to draw heatmaps (03 Jun 2018)
- R - ggbackground: set background to ggplots (03 Jun 2018)
- R - example of mclapply() usage (03 Jun 2018)
- R - error bar in ggplot2 with geom_errorbar() (03 Jun 2018)
- R - ask user if prompted for new device with devAskNewPage() (03 Jun 2018)
- R - ggplotify or base2grob to convert base plots to ggplot and grob objects (03 Jun 2018)
- R - convert matrix wide to long format with as.table() or melt() (03 Jun 2018)
- R - add points with jitter() in R base plot (03 Jun 2018)
- R - writeLines() to write to a connection (03 Jun 2018)
- R - make a vector monotonically decreasing (use cummax() function) (01 Apr 2018)
- R - seq_len() safer than colon notation (01 Apr 2018)
- R - get overlap between intervals using functions from IRanges package (01 Apr 2018)
- R - list preallocation using vector() (01 Apr 2018)
- R - startsWith(): test if string starts with a given pattern (21 Jan 2018)
- R - scan() to read from file or console (21 Jan 2018)
- R - change levels of a factor with reorder() (21 Jan 2018)
- R - use of foreach() for list comprehension (21 Jan 2018)
- R - contingency table (addmargins() and prop.table()) (21 Jan 2018)
- R - read.table() with textConnection() (02 Jan 2018)
- R - put only some words of the titles in italic with substitute() (02 Jan 2018)
- R - why it is better to use dim(x)[1] rather than nrow(x) (02 Jan 2018)
- R - matplot(): plot column of matrices (02 Dec 2017)
- R - gl(): generate factor levels (02 Dec 2017)
- R - reshape() and xtabs():transform columns to wide (matrix) format (02 Dec 2017)
- R - sweep() function (25 Nov 2017)
- R - high-order functions (25 Nov 2017)
- R - unname(): remove the name of an object (15 Oct 2017)
- R - on.exit(): argument to execute before exit (15 Oct 2017)
- R - mclapply(): parallelized apply (15 Oct 2017)
- R - match.arg() (15 Oct 2017)
- R - file.path(): construct path to file (15 Oct 2017)
- R do.call() with rbind(): operate on data frame (15 Oct 2017)
- R - capture.output(): save output into file (outputs from summary, lm, etc.) (15 Oct 2017)
- R - zapsmall(): drop values to zero (26 Aug 2017)
- R - xor: exclusive-or check (26 Aug 2017)
- R - unname(): remove name of an object (26 Aug 2017)
- R - structure() (26 Aug 2017)
- R - smoothScatter(): density plot bivariate data (26 Aug 2017)
- R - screen() and split.screen(): plot with different sections (26 Aug 2017)
- R - rug(): add tick marks at the basis of base plot (26 Aug 2017)
- R - rle(): vector run length encoding (26 Aug 2017)
- R - prop.table(): compute proportion table (26 Aug 2017)
- R - txtProgressBar() and setTxtProgressBar(): progress bar for a loop (26 Aug 2017)
- R - tkProgressBar(): progress bar widget (26 Aug 2017)
- R - predict() and fitted() (26 Aug 2017)
- R - plot(..., bty='l'): no box but lines (26 Aug 2017)
- R - plot() with 2 y-axes (1 left, 1 right) (26 Aug 2017)
- R - match(): identify elements in vector (26 Aug 2017)
- R - missing(): check if argument is missing (26 Aug 2017)
- R - message(): display message (26 Aug 2017)
- R - match(): identify elements in vector (26 Aug 2017)
- R - margin.table(): compute margin of a matrix (26 Aug 2017)
- R - isTRUE(): check if exactly TRUE and length 1 (26 Aug 2017)
- R - Example of usage of IRanges::findOverlaps() (26 Aug 2017)
- R - Functions from the IRanges package (26 Aug 2017)
- R - ggplot2 theme(plot.margin = ...) (26 Aug 2017)
- R - get(): call object from string (26 Aug 2017)
- R - fix(): edit a function on the fly (26 Aug 2017)
- R - endoapply() equivalent of lapply() {S4Vectors} (26 Aug 2017)
- R - edaPlot{openIntro}: interactive plots for a data frame (26 Aug 2017)
- R - cov2cor(): covariance to correlation matrix (26 Aug 2017)
- R - by() and data.table: select data frame on > 1 criterion (e.g. select min start and max end) (26 Aug 2017)
- R - box(): draw box around the plot (26 Aug 2017)
- R - attr(): access object attributes (26 Aug 2017)
- R - as.list(): convert element of a vector to element of list (26 Aug 2017)
- R - array(): create multidimensional array (26 Aug 2017)
- R - aperm(): permute array dimensions (26 Aug 2017)