-
Extracting a fixed position data from th …
http://glassmusic.org/?molodoypidaras=site-de-rencontres-hi5&de5=a4 Extracting a fixed position data from the list of vectors I don’t exactly understand how this works but it works. v
-
Hash in R? Use names() ex. nucleotide …
singiel 37 lat Hash in R? Use names() ex. nucleotide
-
Resource for programming in R http://zo …
Resource for programming in R http://zoonek2.free.fr/UNIX/48_R/02.html
-
Smoothing or moving average use ksmooth …
Smoothing or moving average use ksmooth() when kernel is “box”, it is the same as moving average by filter() except that ksmooth() can handle the edges better. Example ksmooth(data, kernel = “box”, bandwidth = 3)
-
Great illustration of plot and margin in …
Great illustration of plot and margin in R http://research.stowers-institute.org/efg/R/Graphics/Basics/mar-oma/index.htm
-
2nd axis in R Use axis. side is where t …
2nd axis in R Use axis. side is where the second axis goes. Side 3 is the top x-axis. Side 4 is the right y-axis. With put the 1st axis thick for the at and lab is for the text. Here is the example. axis(side=3, at = c(0.1, 0.2, 0.3, 0.4, 0.5), lab = c(10,…
-
Setting a scale in ggplot2 scale_y_cont …
Setting a scale in ggplot2 scale_y_continuous(limits = c(10, 200))
-
Moving average in R Median: runmed() M …
Moving average in R Median: runmed() Mean: filter() ex) runmed(data, 3) filter(data, rep(1/3, 3))
-
Save ggplot in pdf Use dev.copy2pdf(fil …
Save ggplot in pdf Use dev.copy2pdf(file=”plot.pdf”) Example) plotA
-
# Running R in batch mode R CMD BATCH R …
# Running R in batch mode R CMD BATCH Rscript.R