What is ggplot2
ggplot2 is a plotting system for R, based on the grammar of graphics, which tries to take the good parts of base and lattice graphics and none of the bad parts. It takes care of many of the fiddly details that make plotting a hassle (like drawing legends) as well as providing a powerful model of graphics that makes it easy to produce complex multi-layered graphics. – http://ggplot2.org/
Continue Reading →
26
MAY
0
Share
MAY
Web Scraping with R
Posted by: mistan
Web table scraping
Shiny is –
A web application framework for R Turn your analyses into interactive web applications No HTML, CSS, or JavaScript knowledge required.
Best place to learn is the tutorial from official site.
shiny package for R
Inspired and adapted from here. dplyer tutorial here, or its own documentation. Another tutorial for dplyr and tidyr; The cheatsheet is useful too, install the dataset from the page’s footnote devtools::install_github("rstudio/EDAWR").
magrittr: Simplifying R code with pipes
Workflow for statistical analysis with R
Posted by: mistan
NB: Quantitative = continuous
Categorical = Discrete
Uni-variable
Variable | Charts | Statistics |
---|---|---|
Category | Bar Chart, Pie Chart | frequencies ->Chi Square |
Quantitative | Box Plot, Histogram | descriptive -> single mean or proportion: Hypothesis test |
geom_bar. ggplot2 0.9.3.1geom_bar. ggplot2 0.9.3.1
The bar geom is used ...
MAY
R is a free software environment for statistical computing and graphics. The following is some basics about R data types.
Comparison of vector,list,matrix and dataframe
vector | list | matrix | dataframe | |
---|---|---|---|---|
creation | c | list | matrix | data.frame |
same type | Y | N | Y | N |
class | class of its elements | list | matrix | data.frame |
MAY
R Source Code Blocks in Org Mode
Posted by: mistan
Setup and configuration
Adapted from org-mode official site.
-
Install R with binary or source code Comprehensive R Archive Network for Arch Linux, following documents here.