This file contains 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
library(ggplot2) | |
library(emoGG) | |
source("imgcat.R") | |
p <- ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) + geom_emoji(emoji="1f337") | |
imgcat(print(p)) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
const DELIM = ',' | |
const QUOTE = '"' | |
const MAX_LENGTH = 9 | |
const tokenRainbow = state => `string num${state.num}` | |
const tokenPlain = () => 'string' | |
CodeMirror.defineMode('csv', function modeCsv(opts, modeOpts) { | |
let { delimiter = DELIM, rainbow = false } = modeOpts | |
let token = rainbow ? tokenRainbow : tokenPlain |
OlderNewer