R Brown-bag seminarR Brown-bag seminar
Session 8Session 8
Summary

Introduction

Data Import (csv, txt ...)

Data

Types

Data-frames

Question

(sapply(tree,class) --ref(1) )

Basic Operations

Help

Summery

Subset and Filter

Duplicates and NA

Basic analysis/stats

Graphs

Default package

ggplot

How many have installed ggplot2 package
Ref.
1) http://www.statmethods.net/input/datatypes.html
Learn to Code
&
Code to Learn
R Brown-bag seminars : Seminar-8
Tree <- read.table("datavis.csv",sep=",",header=T)
?separator ?Yes file has a Header
library(ggplot2)
RStudio
File → New File → R Script
ggplot(data=tree, aes(x=PosTopoSeq)) + geom_bar(stat="bin")
? ? ?
Geometry = bar
statistical transformation = bin
bin = number of cases in group
Data frame Field on x
ggplot(data=tree, aes(x=VegStructure)) + geom_bar(stat="bin")
WOW!
Shrubland
Some colours please
ggplot(data=tree, aes(x=VegStructure,colour=Site)) + geom_bar(stat="bin")
?Different colours for each site
ggplot(data=tree, aes(x=VegStructure,fill=Site)) + geom_bar(stat="bin")
Fill geometry
Veg. Structure = Shrubland
is in all sites
&
Site 1 is richest
in terms of
Veg. Structure
Question: Confirm that Shrubland is present in every site
ggplot(data=tree) + geom_boxplot(aes(Site,avTreeDen,col=Site))+
coord_flip() + facet_wrap(~VegStructure,ncol=1)
Yes
Veg. Structure = Shrubland
is in all sites
ggplot(data=tree) + geom_point(aes(x=Carbon,y=Clay))
ggplot(data=tree,aes(x=Carbon,y=Clay))+geom_line() + geom_point()
ggplot(data=tree,aes(x=Carbon,y=Clay)) +
geom_line(colour="red", linetype="dashed", size=0.5) +
geom_point(colour="red", size=2, shape=22, fill="red")
? linetype
0 = blank, 1 = solid, 2 = dashed, 3 = dotted, 4 = dotdash, 5 = longdash, 6 =
twodash
what is shape = 25
ggplot(data=tree)+geom_point(aes(x=Carbon,y=Clay,col=Site))
ggplot(data=tree)+geom_line(aes(x=Carbon,y=Clay,col=Site))
gg <- ggplot() + geom_point(data=tree,aes(x=Carbon,y=Clay,col=Site)) +
geom_line(data=tree,aes(x=Carbon,y=Clay,col=Site))
plot(gg)
ggplot(data=tree) + geom_boxplot(aes(Site, pH))
ggplot(data=tree) + geom_boxplot(aes(Site, Clay))
ggplot(data=tree) + geom_boxplot(aes(Site, Carbon))
What we have done today?
Coding
landscape portal example
Assignment

Write a program
− Load data
− Show stats
− Make graphs
− Explain graphs
End

More Related Content

PPTX
R seminar dplyr package
PDF
Data manipulation with dplyr
PDF
Data Manipulation Using R (& dplyr)
PDF
Grouping & Summarizing Data in R
PDF
Data manipulation on r
PDF
Next Generation Programming in R
PPTX
Introduction to pandas
PPTX
Python Seaborn Data Visualization
R seminar dplyr package
Data manipulation with dplyr
Data Manipulation Using R (& dplyr)
Grouping & Summarizing Data in R
Data manipulation on r
Next Generation Programming in R
Introduction to pandas
Python Seaborn Data Visualization

What's hot (19)

ODP
Data Analysis in Python
PDF
Data handling in r
PDF
Introduction to Pandas and Time Series Analysis [PyCon DE]
PDF
Is there a perfect data-parallel programming language? (Experiments with More...
PDF
Pandas
PDF
Python for R Users
PPTX
Python - Numpy/Pandas/Matplot Machine Learning Libraries
PDF
R code for data manipulation
PDF
Morel, a Functional Query Language
PDF
Data profiling with Apache Calcite
PDF
4 R Tutorial DPLYR Apply Function
PDF
SAS and R Code for Basic Statistics
PPTX
Python for R users
PDF
R code descriptive statistics of phenotypic data by Avjinder Kaler
PPTX
Data Analysis with Python Pandas
PDF
Introduction to data.table in R
PDF
Massively Distributed Backups at Facebook Scale - Shlomo Priymak, Facebook - ...
PDF
Unafraid of Change: Optimizing ETL, ML, and AI in Fast-Paced Environments wit...
PDF
Reading Data into R
Data Analysis in Python
Data handling in r
Introduction to Pandas and Time Series Analysis [PyCon DE]
Is there a perfect data-parallel programming language? (Experiments with More...
Pandas
Python for R Users
Python - Numpy/Pandas/Matplot Machine Learning Libraries
R code for data manipulation
Morel, a Functional Query Language
Data profiling with Apache Calcite
4 R Tutorial DPLYR Apply Function
SAS and R Code for Basic Statistics
Python for R users
R code descriptive statistics of phenotypic data by Avjinder Kaler
Data Analysis with Python Pandas
Introduction to data.table in R
Massively Distributed Backups at Facebook Scale - Shlomo Priymak, Facebook - ...
Unafraid of Change: Optimizing ETL, ML, and AI in Fast-Paced Environments wit...
Reading Data into R
Ad

Similar to R Brown-bag seminars : Seminar-8 (20)

PPTX
Reproducible Computational Research in R
PPT
Rstudio is an integrated development environment for R that allows users to i...
PPT
introtorandrstudio.ppt
PPTX
PPT ON MACHINE LEARNING by Ragini Ratre
PPTX
Get up to Speed (Quick Guide to data.table in R and Pentaho PDI)
PPTX
4)12th_L-1_PYTHON-PANDAS-I.pptx
PPT
Hands on Mahout!
PPTX
Pig: Data Analysis Tool in Cloud
PPTX
Democratizing Big Semantic Data management
PPT
Hive ICDE 2010
PPTX
Exploratory Analysis Part1 Coursera DataScience Specialisation
PDF
e_lumley.pdf
PPTX
R You Ready? An I/O Psychologist's Guide to R and Rstudio
PPT
Big Data & Hadoop
PPTX
Data Handling in R language basic concepts.pptx
PPTX
Rattle Graphical Interface for R Language
PPTX
R language
PPTX
Sf NoSQL MeetUp: Apache Hadoop and HBase
PDF
Stata tutorial university of princeton
Reproducible Computational Research in R
Rstudio is an integrated development environment for R that allows users to i...
introtorandrstudio.ppt
PPT ON MACHINE LEARNING by Ragini Ratre
Get up to Speed (Quick Guide to data.table in R and Pentaho PDI)
4)12th_L-1_PYTHON-PANDAS-I.pptx
Hands on Mahout!
Pig: Data Analysis Tool in Cloud
Democratizing Big Semantic Data management
Hive ICDE 2010
Exploratory Analysis Part1 Coursera DataScience Specialisation
e_lumley.pdf
R You Ready? An I/O Psychologist's Guide to R and Rstudio
Big Data & Hadoop
Data Handling in R language basic concepts.pptx
Rattle Graphical Interface for R Language
R language
Sf NoSQL MeetUp: Apache Hadoop and HBase
Stata tutorial university of princeton
Ad

Recently uploaded (20)

PPT
dsa Lec-1 Introduction FOR THE STUDENTS OF bscs
PDF
Book Trusted Companions in Delhi – 24/7 Available Delhi Personal Meeting Ser...
PDF
CS3352FOUNDATION OF DATA SCIENCE _1_MAterial.pdf
PDF
technical specifications solar ear 2025.
PPTX
transformers as a tool for understanding advance algorithms in deep learning
PPTX
ch20 Database System Architecture by Rizvee
PPTX
Hushh Hackathon for IIT Bombay: Create your very own Agents
PPTX
1 hour to get there before the game is done so you don’t need a car seat for ...
PPTX
inbound6529290805104538764.pptxmmmmmmmmm
PPTX
Hushh.ai: Your Personal Data, Your Business
PPTX
langchainpptforbeginners_easy_explanation.pptx
PPTX
inbound2857676998455010149.pptxmmmmmmmmm
PPTX
machinelearningoverview-250809184828-927201d2.pptx
PPTX
9 Bioterrorism.pptxnsbhsjdgdhdvkdbebrkndbd
PPTX
DATA ANALYTICS COURSE IN PITAMPURA.pptx
PPTX
DIGITAL DESIGN AND.pptx hhhhhhhhhhhhhhhhh
PPTX
865628565-Pertemuan-2-chapter-03-NUMERICAL-MEASURES.pptx
PPTX
research framework and review of related literature chapter 2
PPTX
ifsm.pptx, institutional food service management
PPTX
Capstone Presentation a.pptx on data sci
dsa Lec-1 Introduction FOR THE STUDENTS OF bscs
Book Trusted Companions in Delhi – 24/7 Available Delhi Personal Meeting Ser...
CS3352FOUNDATION OF DATA SCIENCE _1_MAterial.pdf
technical specifications solar ear 2025.
transformers as a tool for understanding advance algorithms in deep learning
ch20 Database System Architecture by Rizvee
Hushh Hackathon for IIT Bombay: Create your very own Agents
1 hour to get there before the game is done so you don’t need a car seat for ...
inbound6529290805104538764.pptxmmmmmmmmm
Hushh.ai: Your Personal Data, Your Business
langchainpptforbeginners_easy_explanation.pptx
inbound2857676998455010149.pptxmmmmmmmmm
machinelearningoverview-250809184828-927201d2.pptx
9 Bioterrorism.pptxnsbhsjdgdhdvkdbebrkndbd
DATA ANALYTICS COURSE IN PITAMPURA.pptx
DIGITAL DESIGN AND.pptx hhhhhhhhhhhhhhhhh
865628565-Pertemuan-2-chapter-03-NUMERICAL-MEASURES.pptx
research framework and review of related literature chapter 2
ifsm.pptx, institutional food service management
Capstone Presentation a.pptx on data sci

R Brown-bag seminars : Seminar-8