R Statistics Program

2015-07-01

azim58 - R Statistics Program
portal
R statistics programming language
R software

R seems fairly non-user friendly. It is basically unusuable without some
prior knowledge and practice
Note that in R the filepath to a file must be specified with forward
slashes.


anova in r (wikidpad)

adding labels to a scatterplot in R
adjusting the scale of a plot
make scatterplot connected by line through each point
Josh's notes about using R to adjust p values
making a combined boxplot and stripchart in R

"C:\Users\kwhittem\Google Drive\DR\2013\8-12-13\using excel files with R
8-12-13.txt"

List of things I wish I knew how to do in R
adjust the scale of a scatterplot
add labels to each point of a scatterplot
add multiple datasets to a scatterplot and control the shape of the
points in the different datasets
add a straight line to a scatterplot at a specific location
make bar graphs


===========================================================================
RStudio is a nice IDE for R

GrapheR is a package that makes graphing in R a little more user friendly.
start with the command "run.GrapheR()"

Deducer is another GUI for graphing in R
binary for R 2.12.0 or higher: jgr-1_62.exe (ca. 32kB, updated 2010/10/20)
from here: http://rforge.net/JGR/
by going to Packages and Data->Data Viewer

Here are some packages Krupa said she liked
klaR
lattice
rattle
DAAG
DMWR (Data mining with R)
ggplot2


===========================================================================

Example of plotting with lattice
require(lattice)
plot(valleyfevertrain.lda


===========================================================================

Krupa has some information here
(there's also an R reference card here)
S:\Administration\
Biostatistics\Valley Fever\paper working directory\Random peptides
paper\LDA,NaiveBayes\Krupa_LDA_R\For paper\Useful Literature


===========================================================================
Plotting a scatterplot with labels for each datapoint

library(ggplot2)
x <- data.frame(a=1:10, b=rnorm(10))
x$lab <- letters1:10
ggplot(data=x, aes(a, b, label=lab)) +
geom_point() +
geom_text(data = subset(x, abs(b) > 0.2), vjust=0)

code from
http://stackoverflow.com/questions/1816719/ggplot2-scatter-plot-labels


===========================================================================
Information about adding a straight line to a plot in ggplot2

http://stackoverflow.com/questions/13254441/add-a-horizontal-line-to-plot-a
nd-legend-in-ggplot2


===========================================================================





Some items



see also