SlideShare a Scribd company logo
1 of 9
Background: This course is all about data visualization.
However, we must first have some understanding about the data
that we are using to create the visualizations. For this
assignment, each group will be given its unique dataset to work
with. That same dataset will be used for both part 1 and part 2
of this assignment.
Your Assignment
:
Part 1 - Data Analysis with RStudio
Provide screen shots that show analysis of your dataset. For
each screen shot, please show
comment lines
that describes what the next line(s) of code is to achieve,
the code
in proper syntax for R
,
and the
computed results
that R produces.
Analyzing your data:Watch the video included in this week's
Residency material to learn the simple commands to conduct
basic data analysis with RStudio.Use RStudio to generate
results - create screen shots and then paste to a MS word
document with the basic data analysis of your dataset.
Remember to use a comment line (#) that explains each R
instruction
. Example: (#sets the working directory). Commands (
setwd
,
dim
,
head
,
tail
,
structure
,
summary, cor, transform, subset).
First, set your working directory (command - setwd OR use
drop down from RStudio
Session
tab.
Load your dataset into RStudio and examine its structure -
read.csv OR select your object file from RStudio
Files
pane. Other commands to use:
dim
,
head
,
tail
,
structure
, and
summary
(provide comment lines; the R code; and results as screen shot
#1)
View your original dataset - examine each field/grouping in the
data - decide whether each field is: "categorical" or
"continuous" data (add this also to screen shot #1)
Create a correlation of stats for the dataset. R requires
categorical fields to be 0/1 instead of no/yes; also, fields must
be numeric instead of string - Hint: might be necessary to
Transform some fields. If so, create a new version of your
dataset with these transformations then do correlation on
transformed data - commands:
transform
and
cor
(provide as screen shot #2)
What is the Min, Max, Median, and Mean of
a continuous value field
in your data? (provide also as screen shot #2)
What is the correlation values between all fields in your
dataset? (provide as screen shot #3)
Create a subset of the dataset with only at least two field in
your dataset - commands:
subset
,
cor
(provide also as screen shot #3)
These three (3) screen shots containing the required data details
should be placed in a MS Word document and labeled as Part 1
- Dataset Analysis .
Part 2 - Data Visualizing with RStudio
Background: As we have learned, a lot of thought goes into the
design of a visualization. In this examination of your data and
its visualization, we review how
data types
influence the choice of graphing - see "Selecting a Graph"
hand-out (in this folder).Provide screen shots that shows graphs
and charts of your dataset (Do NOT use ggplot2 or other R
package features - we will learn and use these advance R
features in another lesson) For each screen shot, please show
comment lines
that describes what the next line(s) of code is to achieve,
the code
in proper syntax for R
,
and the
computed results
that R produces.Visualizing your data:Review Kirk chapter 4
and Res Wknd slide hand-outs to learn the data type
requirements for each graph type. Also use this R Tutorial
page:
https://www.tutorialspoint.com/r/index.htm
for reference on RStudio commands for creating graphs and
charts.Use RStudio to create graphs and charts - create screen
shots and then paste to your MS word document showing visuals
of your dataset. Use c ommands (
pie
,
barplot
,
hist
,
boxplot
,
plot).
Graphs to Produce:
Pie Chart:
Create a pie chart that shows relationships of certain
fields/grouping of your dataset - see professor for details. Use
command:
pie
(x)
-
(provide as screen shot #4)
Label the fields/columns as appropriate - see professor for
details, Use command
pie (
x), labels. (provide also as screen shot #4)
Title the pie chart as (a name you choose). Use command
pie (
x), labels, main. (provide as screen shot #5)
Color the pie chart using the rainbow option. Use command
pie (
x), labels, main, col. (provide also as screen shot #5.
Bar Plot:
Create a bar plot that shows relationships of certain
fields/grouping of your dataset - Use same previous
fields/columns First create a matrix (H); assign values for each
field/column to (H). Use command
barplot
(H). (provide as screen shot #4)
Label the x and y axis as (see professor). Use command
barplot
(H), xlab, ylab. (provide also as screen shot #4)
Label the x and y axis with names (see professor). Use
command
barplot
(H), xlab =, ylab =. (provide also as screen shot #4).
Title the bar plot as (a name you choose). Use command
barplot
(H), xlab =, ylab =, main. (provide as screen shot #5).
Color the bars in the bar plot any color you wish. Use
command
barplot
(H), xlab =, ylab =, main, col. (provide also as screen shot
#5).
Histogram:
Create a histogram that shows frequency of values of chosen
fields/columns of your dataset - use same previous r
fields/columns. First, create a vector (v) that has values for
values of each field/column. then use function
hist
(v). (provide as screen shot #6)
Label the x and y axis as (same as previous bar plot). Use
function
hist
(v, xlab =, xlim =, ylab =, ylim =. (provide also as screen shot
#6)
Title the histogram as (same as previous bar plot). Assign your
title to a variable;
title <- histogram name
, Use function
hist
(v, main = "title", xlab =, xlim =, ylab =, ylim =. (provide
as screen shot #7)
Give the histogram any color you wish.
Note: all bars should be the same color
. Use function
hist
(v, main = "title", xlab =, col =, xlim =, ylab =, ylim =.
(provide also as screen shot #7)
Box Plot:
Create a box plot that shows a measure of the distribution of
values across chosen fields/columns of your dataset - use same
previous fields/columns. First, create a vector (v) that has
values for values of each field/column. then use function
boxplot
(v). (provide as screen shot #8)
Label the x and y axis as (same as previous histogram). Use
function
boxplot
(v, xlab =, ylab =, (provide also as screen shot #8)
Title the box plot as ( a name you choose). Use function
boxplot
(v, main=, xlab =, ylab =, (provide also as screen shot #8)
Color the box plot any color you wish. Use function
boxplot
( v, main=, xlab =, ylab =, col =. (provide also as screen
shot #8)
Scatter Plot:
Create a scatter plot that shows many points of fields/columns
of your dataset plotted in a Cartesian plain - use same previous
fields/columns. First, create two variables for fields - for the
horizontal coordinate (hw) and vertical (vw) for the vertical
coordinate. then use function
p
lot
(vw,hw). (provide as screen shot #9).
Create a scatter plot of just two of the fields/columns of your
dataset
Choose one field/column of your dataset and plot that with a
label the x coordinate
Add a label to the y axis of this same field/column
Add a Titleto the scatter plot (as you choose)
Color the scatter any color you wish (your choice).
These screen shots containing graphs and charts of your data
should also be placed in the same MS Word document and
labeled as Part 2 - Dataset Visualizing with RStudio .
You should have
one MS Word document
that shows both part 1 and part 2 as this assignment. Your
deliverable includes both parts of this assignment; it also
includes your cover page in APA style showing: Title of this
project; Group color and list of members, University’s name,
Course name, Course number, Professor’s name, and Date.
Although this is work done in your Group,
each learner must post an individual copy to iLearn for grade.
Analyze and Visualize Data with RStudio

More Related Content

Similar to Analyze and Visualize Data with RStudio

Cheat Sheet for Stata v15.00 PDF Complete
Cheat Sheet for Stata v15.00 PDF CompleteCheat Sheet for Stata v15.00 PDF Complete
Cheat Sheet for Stata v15.00 PDF CompleteTsamaraLuthfia1
 
Ecs40 winter 2017 homework 3
Ecs40 winter 2017 homework 3Ecs40 winter 2017 homework 3
Ecs40 winter 2017 homework 3JenniferBall44
 
Stata cheat sheet: data processing
Stata cheat sheet: data processingStata cheat sheet: data processing
Stata cheat sheet: data processingTim Essam
 
Pandas,scipy,numpy cheatsheet
Pandas,scipy,numpy cheatsheetPandas,scipy,numpy cheatsheet
Pandas,scipy,numpy cheatsheetDr. Volkan OBAN
 
EECS 214395--‐Data Structures and Data Mana.docx
EECS  214395--‐Data    Structures    and    Data   Mana.docxEECS  214395--‐Data    Structures    and    Data   Mana.docx
EECS 214395--‐Data Structures and Data Mana.docxjack60216
 
Stata Cheat Sheets (all)
Stata Cheat Sheets (all)Stata Cheat Sheets (all)
Stata Cheat Sheets (all)Laura Hughes
 
R-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfR-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfKabilaArun
 
R-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfR-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfattalurilalitha
 
Develop a system flowchart and then write a menu-driven C++ program .pdf
Develop a system flowchart and then write a menu-driven C++ program .pdfDevelop a system flowchart and then write a menu-driven C++ program .pdf
Develop a system flowchart and then write a menu-driven C++ program .pdfleventhalbrad49439
 
CIV1900 Matlab - Plotting & Coursework
CIV1900 Matlab - Plotting & CourseworkCIV1900 Matlab - Plotting & Coursework
CIV1900 Matlab - Plotting & CourseworkTUOS-Sam
 
Read carefully and follow exactly Java You are to write a Breakou.pdf
Read carefully and follow exactly Java You are to write a Breakou.pdfRead carefully and follow exactly Java You are to write a Breakou.pdf
Read carefully and follow exactly Java You are to write a Breakou.pdfrupeshmehta151
 
Terrain AnalysisBackgroundAircraft frequently rely on terrain el.pdf
Terrain AnalysisBackgroundAircraft frequently rely on terrain el.pdfTerrain AnalysisBackgroundAircraft frequently rely on terrain el.pdf
Terrain AnalysisBackgroundAircraft frequently rely on terrain el.pdffeetshoemart
 
R programming & Machine Learning
R programming & Machine LearningR programming & Machine Learning
R programming & Machine LearningAmanBhalla14
 
Data Analysis with R (combined slides)
Data Analysis with R (combined slides)Data Analysis with R (combined slides)
Data Analysis with R (combined slides)Guy Lebanon
 
Me 443 4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...
Me 443   4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...Me 443   4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...
Me 443 4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...Erdi Karaçal
 
Stata Programming Cheat Sheet
Stata Programming Cheat SheetStata Programming Cheat Sheet
Stata Programming Cheat SheetLaura Hughes
 

Similar to Analyze and Visualize Data with RStudio (20)

Cheat Sheet for Stata v15.00 PDF Complete
Cheat Sheet for Stata v15.00 PDF CompleteCheat Sheet for Stata v15.00 PDF Complete
Cheat Sheet for Stata v15.00 PDF Complete
 
Ecs40 winter 2017 homework 3
Ecs40 winter 2017 homework 3Ecs40 winter 2017 homework 3
Ecs40 winter 2017 homework 3
 
Stata cheat sheet: data processing
Stata cheat sheet: data processingStata cheat sheet: data processing
Stata cheat sheet: data processing
 
Lesson 3
Lesson 3Lesson 3
Lesson 3
 
R basics
R basicsR basics
R basics
 
Pandas,scipy,numpy cheatsheet
Pandas,scipy,numpy cheatsheetPandas,scipy,numpy cheatsheet
Pandas,scipy,numpy cheatsheet
 
EECS 214395--‐Data Structures and Data Mana.docx
EECS  214395--‐Data    Structures    and    Data   Mana.docxEECS  214395--‐Data    Structures    and    Data   Mana.docx
EECS 214395--‐Data Structures and Data Mana.docx
 
Stata Cheat Sheets (all)
Stata Cheat Sheets (all)Stata Cheat Sheets (all)
Stata Cheat Sheets (all)
 
R-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfR-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdf
 
R-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfR-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdf
 
R-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfR-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdf
 
Develop a system flowchart and then write a menu-driven C++ program .pdf
Develop a system flowchart and then write a menu-driven C++ program .pdfDevelop a system flowchart and then write a menu-driven C++ program .pdf
Develop a system flowchart and then write a menu-driven C++ program .pdf
 
CIV1900 Matlab - Plotting & Coursework
CIV1900 Matlab - Plotting & CourseworkCIV1900 Matlab - Plotting & Coursework
CIV1900 Matlab - Plotting & Coursework
 
Read carefully and follow exactly Java You are to write a Breakou.pdf
Read carefully and follow exactly Java You are to write a Breakou.pdfRead carefully and follow exactly Java You are to write a Breakou.pdf
Read carefully and follow exactly Java You are to write a Breakou.pdf
 
Terrain AnalysisBackgroundAircraft frequently rely on terrain el.pdf
Terrain AnalysisBackgroundAircraft frequently rely on terrain el.pdfTerrain AnalysisBackgroundAircraft frequently rely on terrain el.pdf
Terrain AnalysisBackgroundAircraft frequently rely on terrain el.pdf
 
R programming & Machine Learning
R programming & Machine LearningR programming & Machine Learning
R programming & Machine Learning
 
Data Analysis with R (combined slides)
Data Analysis with R (combined slides)Data Analysis with R (combined slides)
Data Analysis with R (combined slides)
 
Me 443 4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...
Me 443   4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...Me 443   4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...
Me 443 4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...
 
Stata Programming Cheat Sheet
Stata Programming Cheat SheetStata Programming Cheat Sheet
Stata Programming Cheat Sheet
 
Intake 37 6
Intake 37 6Intake 37 6
Intake 37 6
 

More from rosemaryralphs52525

attached assignment requirements as well as will attach below my not.docx
attached assignment requirements as well as will attach below my not.docxattached assignment requirements as well as will attach below my not.docx
attached assignment requirements as well as will attach below my not.docxrosemaryralphs52525
 
Attached below is the template on the research paper. You have to ch.docx
Attached below is the template on the research paper. You have to ch.docxAttached below is the template on the research paper. You have to ch.docx
Attached below is the template on the research paper. You have to ch.docxrosemaryralphs52525
 
Attributes of a Transformational Healthcare System - Collaborati.docx
Attributes of a Transformational Healthcare System - Collaborati.docxAttributes of a Transformational Healthcare System - Collaborati.docx
Attributes of a Transformational Healthcare System - Collaborati.docxrosemaryralphs52525
 
Audience PurposeThey [chickens] know nothing from the mome.docx
Audience PurposeThey [chickens] know nothing from the mome.docxAudience PurposeThey [chickens] know nothing from the mome.docx
Audience PurposeThey [chickens] know nothing from the mome.docxrosemaryralphs52525
 
Be sure to read the reading assignment in your text first!Read t.docx
Be sure to read the reading assignment in your text first!Read t.docxBe sure to read the reading assignment in your text first!Read t.docx
Be sure to read the reading assignment in your text first!Read t.docxrosemaryralphs52525
 
Be sure to write complete sentences, double space, set one-inch .docx
Be sure to write complete sentences, double space, set one-inch .docxBe sure to write complete sentences, double space, set one-inch .docx
Be sure to write complete sentences, double space, set one-inch .docxrosemaryralphs52525
 
BC Chemistry 162 Laboratory Manual Experiment 6 Vapor Press.docx
BC Chemistry 162 Laboratory Manual Experiment 6 Vapor Press.docxBC Chemistry 162 Laboratory Manual Experiment 6 Vapor Press.docx
BC Chemistry 162 Laboratory Manual Experiment 6 Vapor Press.docxrosemaryralphs52525
 
BCO127Applied Management Statistics Task br.docx
BCO127Applied Management Statistics                      Task br.docxBCO127Applied Management Statistics                      Task br.docx
BCO127Applied Management Statistics Task br.docxrosemaryralphs52525
 
BCOM - CarrCrisis Communication Project CarrThe Scenario.docx
BCOM - CarrCrisis Communication Project CarrThe Scenario.docxBCOM - CarrCrisis Communication Project CarrThe Scenario.docx
BCOM - CarrCrisis Communication Project CarrThe Scenario.docxrosemaryralphs52525
 
Battleground Medical Center is requiring that all Departments partic.docx
Battleground Medical Center is requiring that all Departments partic.docxBattleground Medical Center is requiring that all Departments partic.docx
Battleground Medical Center is requiring that all Departments partic.docxrosemaryralphs52525
 
Basic concept and system disorder assignment.This a research.docx
Basic concept and system disorder assignment.This a research.docxBasic concept and system disorder assignment.This a research.docx
Basic concept and system disorder assignment.This a research.docxrosemaryralphs52525
 
Based upon your research from this topic, propose a set of security .docx
Based upon your research from this topic, propose a set of security .docxBased upon your research from this topic, propose a set of security .docx
Based upon your research from this topic, propose a set of security .docxrosemaryralphs52525
 
BASIC SAMPLE COVER LETTER Your Street Address BLOCK SYLE-.docx
BASIC SAMPLE COVER LETTER  Your Street Address BLOCK SYLE-.docxBASIC SAMPLE COVER LETTER  Your Street Address BLOCK SYLE-.docx
BASIC SAMPLE COVER LETTER Your Street Address BLOCK SYLE-.docxrosemaryralphs52525
 
Basic Bookkeeping – Level 1 F I N A L E X A M V4.0 CU07.docx
Basic Bookkeeping – Level 1 F I N A L  E X A M V4.0 CU07.docxBasic Bookkeeping – Level 1 F I N A L  E X A M V4.0 CU07.docx
Basic Bookkeeping – Level 1 F I N A L E X A M V4.0 CU07.docxrosemaryralphs52525
 
Basically, answer any and all case questions you like. Format prefer.docx
Basically, answer any and all case questions you like. Format prefer.docxBasically, answer any and all case questions you like. Format prefer.docx
Basically, answer any and all case questions you like. Format prefer.docxrosemaryralphs52525
 
auto- attendant 800 wordsINTRO  Business phone system.docx
auto- attendant 800 wordsINTRO  Business phone system.docxauto- attendant 800 wordsINTRO  Business phone system.docx
auto- attendant 800 wordsINTRO  Business phone system.docxrosemaryralphs52525
 
Based on your research, what is negligent security300 Word Discus.docx
Based on your research, what is negligent security300 Word Discus.docxBased on your research, what is negligent security300 Word Discus.docx
Based on your research, what is negligent security300 Word Discus.docxrosemaryralphs52525
 
Autism spectrum DisorDersFoundations, CharaCteristiC.docx
Autism spectrum DisorDersFoundations, CharaCteristiC.docxAutism spectrum DisorDersFoundations, CharaCteristiC.docx
Autism spectrum DisorDersFoundations, CharaCteristiC.docxrosemaryralphs52525
 
Attached Files Personal data breaches and securing IoT device.docx
Attached Files Personal data breaches and securing IoT device.docxAttached Files Personal data breaches and securing IoT device.docx
Attached Files Personal data breaches and securing IoT device.docxrosemaryralphs52525
 
Attached FilesIT Governance at University of the SoutheastU.docx
Attached FilesIT Governance at University of the SoutheastU.docxAttached FilesIT Governance at University of the SoutheastU.docx
Attached FilesIT Governance at University of the SoutheastU.docxrosemaryralphs52525
 

More from rosemaryralphs52525 (20)

attached assignment requirements as well as will attach below my not.docx
attached assignment requirements as well as will attach below my not.docxattached assignment requirements as well as will attach below my not.docx
attached assignment requirements as well as will attach below my not.docx
 
Attached below is the template on the research paper. You have to ch.docx
Attached below is the template on the research paper. You have to ch.docxAttached below is the template on the research paper. You have to ch.docx
Attached below is the template on the research paper. You have to ch.docx
 
Attributes of a Transformational Healthcare System - Collaborati.docx
Attributes of a Transformational Healthcare System - Collaborati.docxAttributes of a Transformational Healthcare System - Collaborati.docx
Attributes of a Transformational Healthcare System - Collaborati.docx
 
Audience PurposeThey [chickens] know nothing from the mome.docx
Audience PurposeThey [chickens] know nothing from the mome.docxAudience PurposeThey [chickens] know nothing from the mome.docx
Audience PurposeThey [chickens] know nothing from the mome.docx
 
Be sure to read the reading assignment in your text first!Read t.docx
Be sure to read the reading assignment in your text first!Read t.docxBe sure to read the reading assignment in your text first!Read t.docx
Be sure to read the reading assignment in your text first!Read t.docx
 
Be sure to write complete sentences, double space, set one-inch .docx
Be sure to write complete sentences, double space, set one-inch .docxBe sure to write complete sentences, double space, set one-inch .docx
Be sure to write complete sentences, double space, set one-inch .docx
 
BC Chemistry 162 Laboratory Manual Experiment 6 Vapor Press.docx
BC Chemistry 162 Laboratory Manual Experiment 6 Vapor Press.docxBC Chemistry 162 Laboratory Manual Experiment 6 Vapor Press.docx
BC Chemistry 162 Laboratory Manual Experiment 6 Vapor Press.docx
 
BCO127Applied Management Statistics Task br.docx
BCO127Applied Management Statistics                      Task br.docxBCO127Applied Management Statistics                      Task br.docx
BCO127Applied Management Statistics Task br.docx
 
BCOM - CarrCrisis Communication Project CarrThe Scenario.docx
BCOM - CarrCrisis Communication Project CarrThe Scenario.docxBCOM - CarrCrisis Communication Project CarrThe Scenario.docx
BCOM - CarrCrisis Communication Project CarrThe Scenario.docx
 
Battleground Medical Center is requiring that all Departments partic.docx
Battleground Medical Center is requiring that all Departments partic.docxBattleground Medical Center is requiring that all Departments partic.docx
Battleground Medical Center is requiring that all Departments partic.docx
 
Basic concept and system disorder assignment.This a research.docx
Basic concept and system disorder assignment.This a research.docxBasic concept and system disorder assignment.This a research.docx
Basic concept and system disorder assignment.This a research.docx
 
Based upon your research from this topic, propose a set of security .docx
Based upon your research from this topic, propose a set of security .docxBased upon your research from this topic, propose a set of security .docx
Based upon your research from this topic, propose a set of security .docx
 
BASIC SAMPLE COVER LETTER Your Street Address BLOCK SYLE-.docx
BASIC SAMPLE COVER LETTER  Your Street Address BLOCK SYLE-.docxBASIC SAMPLE COVER LETTER  Your Street Address BLOCK SYLE-.docx
BASIC SAMPLE COVER LETTER Your Street Address BLOCK SYLE-.docx
 
Basic Bookkeeping – Level 1 F I N A L E X A M V4.0 CU07.docx
Basic Bookkeeping – Level 1 F I N A L  E X A M V4.0 CU07.docxBasic Bookkeeping – Level 1 F I N A L  E X A M V4.0 CU07.docx
Basic Bookkeeping – Level 1 F I N A L E X A M V4.0 CU07.docx
 
Basically, answer any and all case questions you like. Format prefer.docx
Basically, answer any and all case questions you like. Format prefer.docxBasically, answer any and all case questions you like. Format prefer.docx
Basically, answer any and all case questions you like. Format prefer.docx
 
auto- attendant 800 wordsINTRO  Business phone system.docx
auto- attendant 800 wordsINTRO  Business phone system.docxauto- attendant 800 wordsINTRO  Business phone system.docx
auto- attendant 800 wordsINTRO  Business phone system.docx
 
Based on your research, what is negligent security300 Word Discus.docx
Based on your research, what is negligent security300 Word Discus.docxBased on your research, what is negligent security300 Word Discus.docx
Based on your research, what is negligent security300 Word Discus.docx
 
Autism spectrum DisorDersFoundations, CharaCteristiC.docx
Autism spectrum DisorDersFoundations, CharaCteristiC.docxAutism spectrum DisorDersFoundations, CharaCteristiC.docx
Autism spectrum DisorDersFoundations, CharaCteristiC.docx
 
Attached Files Personal data breaches and securing IoT device.docx
Attached Files Personal data breaches and securing IoT device.docxAttached Files Personal data breaches and securing IoT device.docx
Attached Files Personal data breaches and securing IoT device.docx
 
Attached FilesIT Governance at University of the SoutheastU.docx
Attached FilesIT Governance at University of the SoutheastU.docxAttached FilesIT Governance at University of the SoutheastU.docx
Attached FilesIT Governance at University of the SoutheastU.docx
 

Recently uploaded

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 

Recently uploaded (20)

9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 

Analyze and Visualize Data with RStudio

  • 1. Background: This course is all about data visualization. However, we must first have some understanding about the data that we are using to create the visualizations. For this assignment, each group will be given its unique dataset to work with. That same dataset will be used for both part 1 and part 2 of this assignment. Your Assignment : Part 1 - Data Analysis with RStudio Provide screen shots that show analysis of your dataset. For each screen shot, please show comment lines that describes what the next line(s) of code is to achieve, the code in proper syntax for R , and the computed results that R produces. Analyzing your data:Watch the video included in this week's Residency material to learn the simple commands to conduct basic data analysis with RStudio.Use RStudio to generate results - create screen shots and then paste to a MS word document with the basic data analysis of your dataset. Remember to use a comment line (#) that explains each R instruction . Example: (#sets the working directory). Commands ( setwd , dim ,
  • 2. head , tail , structure , summary, cor, transform, subset). First, set your working directory (command - setwd OR use drop down from RStudio Session tab. Load your dataset into RStudio and examine its structure - read.csv OR select your object file from RStudio Files pane. Other commands to use: dim , head , tail , structure , and summary (provide comment lines; the R code; and results as screen shot #1) View your original dataset - examine each field/grouping in the data - decide whether each field is: "categorical" or "continuous" data (add this also to screen shot #1) Create a correlation of stats for the dataset. R requires categorical fields to be 0/1 instead of no/yes; also, fields must
  • 3. be numeric instead of string - Hint: might be necessary to Transform some fields. If so, create a new version of your dataset with these transformations then do correlation on transformed data - commands: transform and cor (provide as screen shot #2) What is the Min, Max, Median, and Mean of a continuous value field in your data? (provide also as screen shot #2) What is the correlation values between all fields in your dataset? (provide as screen shot #3) Create a subset of the dataset with only at least two field in your dataset - commands: subset , cor (provide also as screen shot #3) These three (3) screen shots containing the required data details should be placed in a MS Word document and labeled as Part 1 - Dataset Analysis . Part 2 - Data Visualizing with RStudio Background: As we have learned, a lot of thought goes into the design of a visualization. In this examination of your data and its visualization, we review how data types influence the choice of graphing - see "Selecting a Graph" hand-out (in this folder).Provide screen shots that shows graphs
  • 4. and charts of your dataset (Do NOT use ggplot2 or other R package features - we will learn and use these advance R features in another lesson) For each screen shot, please show comment lines that describes what the next line(s) of code is to achieve, the code in proper syntax for R , and the computed results that R produces.Visualizing your data:Review Kirk chapter 4 and Res Wknd slide hand-outs to learn the data type requirements for each graph type. Also use this R Tutorial page: https://www.tutorialspoint.com/r/index.htm for reference on RStudio commands for creating graphs and charts.Use RStudio to create graphs and charts - create screen shots and then paste to your MS word document showing visuals of your dataset. Use c ommands ( pie , barplot , hist , boxplot , plot). Graphs to Produce: Pie Chart: Create a pie chart that shows relationships of certain fields/grouping of your dataset - see professor for details. Use command: pie
  • 5. (x) - (provide as screen shot #4) Label the fields/columns as appropriate - see professor for details, Use command pie ( x), labels. (provide also as screen shot #4) Title the pie chart as (a name you choose). Use command pie ( x), labels, main. (provide as screen shot #5) Color the pie chart using the rainbow option. Use command pie ( x), labels, main, col. (provide also as screen shot #5. Bar Plot: Create a bar plot that shows relationships of certain fields/grouping of your dataset - Use same previous fields/columns First create a matrix (H); assign values for each field/column to (H). Use command barplot (H). (provide as screen shot #4) Label the x and y axis as (see professor). Use command barplot (H), xlab, ylab. (provide also as screen shot #4) Label the x and y axis with names (see professor). Use command barplot (H), xlab =, ylab =. (provide also as screen shot #4).
  • 6. Title the bar plot as (a name you choose). Use command barplot (H), xlab =, ylab =, main. (provide as screen shot #5). Color the bars in the bar plot any color you wish. Use command barplot (H), xlab =, ylab =, main, col. (provide also as screen shot #5). Histogram: Create a histogram that shows frequency of values of chosen fields/columns of your dataset - use same previous r fields/columns. First, create a vector (v) that has values for values of each field/column. then use function hist (v). (provide as screen shot #6) Label the x and y axis as (same as previous bar plot). Use function hist (v, xlab =, xlim =, ylab =, ylim =. (provide also as screen shot #6) Title the histogram as (same as previous bar plot). Assign your title to a variable; title <- histogram name , Use function hist (v, main = "title", xlab =, xlim =, ylab =, ylim =. (provide as screen shot #7)
  • 7. Give the histogram any color you wish. Note: all bars should be the same color . Use function hist (v, main = "title", xlab =, col =, xlim =, ylab =, ylim =. (provide also as screen shot #7) Box Plot: Create a box plot that shows a measure of the distribution of values across chosen fields/columns of your dataset - use same previous fields/columns. First, create a vector (v) that has values for values of each field/column. then use function boxplot (v). (provide as screen shot #8) Label the x and y axis as (same as previous histogram). Use function boxplot (v, xlab =, ylab =, (provide also as screen shot #8) Title the box plot as ( a name you choose). Use function boxplot (v, main=, xlab =, ylab =, (provide also as screen shot #8) Color the box plot any color you wish. Use function boxplot ( v, main=, xlab =, ylab =, col =. (provide also as screen shot #8) Scatter Plot:
  • 8. Create a scatter plot that shows many points of fields/columns of your dataset plotted in a Cartesian plain - use same previous fields/columns. First, create two variables for fields - for the horizontal coordinate (hw) and vertical (vw) for the vertical coordinate. then use function p lot (vw,hw). (provide as screen shot #9). Create a scatter plot of just two of the fields/columns of your dataset Choose one field/column of your dataset and plot that with a label the x coordinate Add a label to the y axis of this same field/column Add a Titleto the scatter plot (as you choose) Color the scatter any color you wish (your choice). These screen shots containing graphs and charts of your data should also be placed in the same MS Word document and labeled as Part 2 - Dataset Visualizing with RStudio . You should have one MS Word document that shows both part 1 and part 2 as this assignment. Your deliverable includes both parts of this assignment; it also includes your cover page in APA style showing: Title of this project; Group color and list of members, University’s name, Course name, Course number, Professor’s name, and Date. Although this is work done in your Group, each learner must post an individual copy to iLearn for grade.