how to use r easily as gis tools!

14
Using R as a GIS Omar F. Althuwaynee, PhD Geomatics Engineering

Upload: omar-f-althuwaynee

Post on 20-Mar-2017

81 views

Category:

Education


0 download

TRANSCRIPT

Using R as a GIS

Omar F. Althuwaynee, PhDGeomatics Engineering

Omar F. Althuwaynee, PhD in Geomatics engineering

R is a free software environment for statistical computing and graphics, and so much more.

There are too many resources about how to use R lang. from basic to master level, So..! what will we offer in this series?

“as a geomatics engineer, how to use R, in geospatial environments, with very basic or no background about programming or statistics “

Course objectives

Using R as GIS

In this session, I will talk about;

1. Introduction to effective way in learning R.

2. Do and Don’t do in learning journey.

3. Effective R environment setup for new project.

Let us begin..!

Omar F. Althuwaynee, PhD in Geomatics engineering

1. Understand the effective method to learn any programing language.

2. Effectively setting your project environment according to R.3. Have a clear plan, about how to develop a new programing

skills, using the powerful R language .

End of this session, you will be able to

Upcoming weeks, you will be able to

1. Learn basic operations with spatial data in R. 2. Develop mapping cartographical skills in R3. Run Statistical analysis (datamining approaches)

4. Produce report and making maps.

Omar F. Althuwaynee, PhD in Geomatics engineering

1. R is a fast growing open source contestant to commercial software packages like SAS, STATA and SPSS to geospatial solution software (ArcGIS, IDRISI, ENVI..etc)back and forth.

2. R is used by over 2 million analysts worldwide. 3. R adopted by premier analytics-driven companies like

Google, Facebook, and Microsoft and the New York Times.4. Install it on as many computers as you want to. 5. Anyone can write an add-on package for it6. R is very rich and efficient tool for non-spatial data, dozens of

code written, we can create a novel work by introduce spatial data in it.

7. And much more…………………………..

Why to learn R

Omar F. Althuwaynee, PhD in Geomatics engineering

• R mailing lists with thousands of subscribers(www.r-project.org/mail.html).

• Stack overflow (stackoverflow.com)• Many free books on R programming.

What Support is Available for R Programming?

R StudioBasic RGUI

R architectR eclipse

Not Looking for any challenge (or you don’t care about significant self development)?

Sorry we cant help you, this course is for hard working and committed people Only!!

Check out FreeStatisticalSoftware.com

You don’t like R ha?!

Omar F. Althuwaynee, PhD in Geomatics engineering

1. Introductory Statistics with R .2. R a self learning tutorial.3. An R and S-Plus Companion to Applied Regression. 4. Data Analysis and Graphics Using R: An Example-based

Approach.5. Data Analysis Using Regression and Multilevel / Hierarchical

Models. 6. Many cheat sheets are available free online.

References

Omar F. Althuwaynee, PhD in Geomatics engineering

• Download and install r-project (https://cran.r-project.org/) for Windows, Mac OS, Linux.

• Setup the project environment• Read and understand the “help function”• Imagine the solution of any dilemma by guessing any sort of

related keywords.

How do I start ?

Omar F. Althuwaynee, PhD in Geomatics engineering

Mickey:“Don’t worry mate. Here is the recipe ..!”

Donald: “Too many resources out there. But still struggle with the basics of R! “

Omar F. Althuwaynee, PhD in Geomatics engineering

To learn new language..!

Ask yourself…!! About Verb عمل))

1. How many phases it has?, , , , , يعمل, عملن عملوا عمل عملت اعمل

2. What is it composed of?Past, present, different pronounces

3. How to use it with real case?Verb أعمل))

محاضرا أعملانا I work as a lecturerبأتقان يعملالمهندس الخرائط

Omar F. Althuwaynee, PhD in Geomatics engineering

To learn new language..!

Ask yourself…!! About (rep)

1. How many phases it hasrep(x, times)rep(x, each) # not the same.rep(x, each = , len = ) rep(x, each = , times = )

2. What is it composed of?x, times, len, c(), each3. How to use it with real datarep(1:4, 2)rep(1:4, each = 2) # not the same.rep(1:4, c(2,2,2,2)) # same as second.

Fact!In Coding

We are copying, editing and manipulating.Later, we can build our own code from scratch