Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

undefined In performing an analysis you need data. Where do you get the data? You can create data in the R console using data structures

image text in transcribedundefined

In performing an analysis you need data. Where do you get the data? You can create data in the R console using data structures such as vectors, lists, matrices, and data frames. You can read a data file that was created with another program such as Excel. It would be convenient, as we are learning to write programs in R, if practice datasets existed for us to experiment with. Fortunately, there are practice datasets available in R. These data sets are called "built-in" data sets. A Built-in data sets are data sets that are always available to us in the R console without having to issue any type of instruction to make them available. You can see a listing of these built-in datasets by typing the command "data()" in the console pane or by clicking on the word "datasets" in the Packages tab located in your RStudio window. Clicking on "datasets" in the Packages tab will allow you to read more information about each of the built-in datasets. Plot a Graph Using the built-in dataset "cars", plot a histogram using the distance values on the x-axis and a scatter plot using speed on the x-axis and distance on the y-axis. Create the graphs first using the Base graphics functions and then again using the ggplot2 graphics functions. Provide the appropriate x- and y-axis labels (not the default labels) and the main title. Create an R Markdown HTML document containing your code and the fours graphs. Submit the HTML document for this assignment. In performing an analysis you need data. Where do you get the data? You can create data in the R console using data structures such as vectors, lists, matrices, and data frames. You can read a data file that was created with another program such as Excel. It would be convenient, as we are learning to write programs in R, if practice datasets existed for us to experiment with. Fortunately, there are practice datasets available in R. These data sets are called "built-in" data sets. A Built-in data sets are data sets that are always available to us in the R console without having to issue any type of instruction to make them available. You can see a listing of these built-in datasets by typing the command "data()" in the console pane or by clicking on the word "datasets" in the Packages tab located in your RStudio window. Clicking on "datasets" in the Packages tab will allow you to read more information about each of the built-in datasets. Plot a Graph Using the built-in dataset "cars", plot a histogram using the distance values on the x-axis and a scatter plot using speed on the x-axis and distance on the y-axis. Create the graphs first using the Base graphics functions and then again using the ggplot2 graphics functions. Provide the appropriate x- and y-axis labels (not the default labels) and the main title. Create an R Markdown HTML document containing your code and the fours graphs. Submit the HTML document for this assignment

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Structure Of The Relational Database Model

Authors: Jan Paredaens ,Paul De Bra ,Marc Gyssens ,Dirk Van Gucht

1st Edition

3642699588, 978-3642699580

More Books

Students also viewed these Databases questions

Question

What is digital literacy? Why is it necessary?

Answered: 1 week ago