D3MEDIA

R in Data Journalism

  • Home
  • About me
  • External
#plot

R command and plot using health data worldbank

h<-read.csv("/home/peter/test/health2.csv") str(h) ## 'data.frame': 165 obs. of 8 variables: ## $ year : int 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 ... ## $ country : Factor w/ 11 levels "Angola","Botswana",..: 1 1 1 1 1 1 1 1 1 1 ... ## $ life.expec : num 46.6 47.4 48.1 48.8 49.4 ... ## $ gdp.cap : num 606 574 776 850 1136 ... ## $ code : Factor w/ 11 levels "AGO","BWA","CMR",. ...

Author pv
#plot

plot

*example of executing R and making a plot library(ggplot2) ggplot(diamonds, aes(x=carat, y=price, color=clarity)) + geom_point()

Author pv
#R Markdown #plot #regression

Hello R Markdown

R Markdown This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com. You can embed an R code chunk like this: summary(cars) ## speed dist ## Min. : 4.0 Min. : 2.00 ## 1st Qu.:12.0 1st Qu.: 26.00 ## Median :15.0 Median : 36.00 ## Mean :15.4 Mean : 42.98 ## 3rd Qu. ...

Author Frida Gomam

Creating a New Theme

Introduction This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I’ll explain how Hugo uses templates and how you can organize your templates to create a theme. I won’t cover using CSS to style your theme. We’ll start with creating a new site with a very basic template. ...

Author Michael Henderson

Awesomeness

Introduction This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I’ll explain how Hugo uses templates and how you can organize your templates to create a theme. I won’t cover using CSS to style your theme. We’ll start with creating a new site with a very basic template. ...

Author Michael Henderson

Wonderful

Introduction This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I’ll explain how Hugo uses templates and how you can organize your templates to create a theme. I won’t cover using CSS to style your theme. We’ll start with creating a new site with a very basic template. ...

Author Michael Henderson
← Next Posts Page 2 of 3  Previous Posts →
D3-Media © 2018
Hugo port of Casper 2.1.7 by EM
Latest Posts Facebook Twitter Github LinkedIn Medium