This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' Pointillism filter | |
#' | |
#' @description Convert an image (RGB array) into array of points in a style reminiscent of pointillism | |
#' | |
#' @param img Image array. | |
#' @param k Point size. Bigger k means bigger point / less detail. | |
#' @param seed Random seed for voxel color sampling. | |
#' | |
#' @examples { | |
#' ## Read image |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' Plots a series of barplots and connects them | |
#' Modified from https://stackoverflow.com/questions/22560850/barplot-with-connected-series | |
#' | |
#' @param dat NxM matrix with N rows as features and M columns as samples | |
#' @param color Vector of N colors | |
#' @param space Space between barplots | |
#' @param alpha Alpha for area connecting barplots | |
#' | |
#' @examples | |
#' dat <- matrix(rnorm(100),10,10) |
NewerOlder