Created
April 24, 2016 14:57
-
-
Save ThoDuyNguyen/c1089c0a2736e80a7472e57468039a69 to your computer and use it in GitHub Desktop.
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
--- | |
title: "test" | |
author: "Tho Duy Nguyen" | |
date: "24 April 2016" | |
output: html_document | |
--- | |
## R Markdown | |
```{r cars} | |
library(AER) | |
library(ggplot2) | |
library(ggthemes) | |
data("CPS1988",package="AER") | |
nghiyeu<-CPS1988[sample(nrow(CPS1988),600), ] | |
attach(nghiyeu) | |
ggplot(nghiyeu,aes(x=experience,y=log(wage),colour=region))+ | |
geom_point(alpha=0.4)+ | |
stat_smooth(method="lm",formula=y~x+I(x^2),size=1,se=FALSE)+ | |
theme_economist() | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment