Articles by R on YIHAN WU

Geocoding An Intersection with Open Street Map data

August 9, 2020 | R on YIHAN WU

Sometimes, geographic information is given as street intersections rather than GPS coordinates or street addresses with house numbers. Intersections can be geocoded with Google Maps (Limited free usage with API), ArcGIS (paid software) or other web services which parse text and return coordinates. If you are lucky, there may be ...
[Read more...]

baRcodeR 0.1.2 release – new linear barcodes

January 9, 2019 | R on YIHAN WU

baRcodeR 0.1.2 is released on CRAN today! Download and install by
install.packages("baRcodeR")
Example linear barcode The major feature of this release is the ability to print linear (a.k.a normal) barcodes through specifying type = "linear" in create_PDF() rather than type = "matrix" which prints the usual QR code. The github ...
[Read more...]

Icon making with ggplot2 and magick

January 2, 2019 | R on YIHAN WU

Icon noun A person or thing regarded as a representative symbol or as worthy of veneration. A symbol or graphic representation on a screen of a program, option, or window. from Oxford English Dictionaries Fontawesome and the noun project along with other icon provides produce and distribute beautiful icons for ...
[Read more...]

Blogdown – shortcode for radix-like Bibtex

December 20, 2018 | R on YIHAN WU

In the spirit of trying out new things in Hugo since my last post on modifying the RSS feed for this website, I attempted to implement the new citation feature from the new radix package by RStudio. Essentially, I tried using a custom hugo shortcode to replicate the text and ... [Read more...]

RStudio Pandoc – HTML To Markdown

December 14, 2018 | R on YIHAN WU

The knitr and rmarkdown packages are used in conjunction with pandoc to convert R code and figures to a variety of formats including PDF, and word. Here, I’m exploring how to convert HTML back to markdown format. This post came about when I was searching how to convert XML ... [Read more...]

Rrrrs in R – Letter frequency in R package names

December 6, 2018 | R on YIHAN WU

R package authors sometimes like to add the letter “r” to package names (for example, the tidyverse packages). baRcodeR also has an extra “r” at the end as well. I thought I could use some available data see if the letter frequency changes compared to the English language average. I ...
[Read more...]

R Script prep for GOplot from Trinity

November 19, 2018 | R on YIHAN WU

This post contains an adapted R script based on prep_n_run_GOplot.pl from Trinity, the denovo transcriptome assembler, for the times R cannot read in the produced EC.* files. prep_n_run_GOplot.pl is used to produce GOplot visualizing differential expression, sorted by GO terms (see http://... [Read more...]

Mapping ggplot geoms and aesthetic parameters

November 16, 2018 | R on YIHAN WU

The sheer variety of geom_* in ggplot2 is overwhelming and astounding, especially with the control over the many aesthetics such as shape and color. For example, the ggplot2 cheat sheet is packed (link). I frequently forget which aes parameters exist for each geom_* and need a quick look at the ... [Read more...]

R Package Tutorial

November 7, 2018 | R on YIHAN WU

Edited by Rob Colautti. Originally posted on https://colauttilab.github.io/biol812.html on March 15th. Most of the general content can be found in Hadley Wickham’s R Packages book available for free online. It goes into detail on almost everything you would need to know to make a ... [Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)