Question: Q: Assistance in understanding this example on Computer Science R language, please give the steps of the solution to better understand, thanks. Where is chegg
Q: Assistance in understanding this example on Computer Science R language, please give the steps of the solution to better understand, thanks.
Where is chegg editor to send the PI data which is a lot of numbers.?
To Fill in spaces below, please:
# Store the data file PI into variable P
# Print the first six rows of variable P
# Create a Histogram for the data set. "How Many Numbers Make Up PI?" is the Title. The bar of the graph are blue.
# Change the y-axis frequency to precent. The bars of the graph are purple
# List the frequncey (count) of each enetry in the data file --- Use the function call "table(dataset)"
#Create a pie chart for the data set below. Each slice of the pie should have its precentage attached
# Also, include a legend. The labels in the legend will be "Fayetteville", "Orange", "Newark", and "Charlotte" x <- c(10, 21,62,53)
# Create a 3D pie chart with the given dataset.
# Also, include a legend. The labels in the legend will be "Fayetteville", "Orange", "Newark", and "Charlotte"
y <- c(45, 34, 21, 11)
*****************************************
# Create data set for the graph x <- c(21, 62, 10, 53)
# covert the frequency value to precent piepercent<- round(100*x/sum(x), 1)
# Plot the chart with title and rainbow color pallet. pie(x, labels = piepercent, main = "City pie chart", col = rainbow(length(x)))
# If you get an error, you must install the package "plotrix" into R library(plotrix)
# Given :
# Create data for the 3D graph
x <- c(21, 62, 10,53)
lbl <- c("London","New York","Singapore","Mumbai")
# Plot the chart. pie3D(x,labels = lbl,explode = 0.1, main = "Pie Chart of Countries ")
# Create a legend for the graph legend("topright", c("London","New York","Singapore","Mumbai"), cex = 0.50, fill = rainbow(length(x))
| # PI data Digits |
| 3 |
| 1 |
| 4 |
| 1 |
| 5 |
| 9 |
| 2 |
| 6 |
| 5 |
| 3 |
| 5 |
| 8 |
| 9 |
| 7 |
| 9 |
| 3 |
| 2 |
| 3 |
| 8 |
| 4 |
| 6 |
| 2 |
| 6 |
| 4 |
| 3 |
| 3 |
| 8 |
| 3 |
| 2 |
| 7 |
| 9 |
| 5 |
| 0 |
| 2 |
| 8 |
| 8 |
| 4 |
| 1 |
| 9 |
| 7 |
| 1 |
| 6 |
| 9 |
| 3 |
| 9 |
| 9 |
| 3 |
| 7 |
| 5 |
| 1 |
| 0 |
| 5 |
| 8 |
| 2 |
| 0 |
| 9 |
| 7 |
| 4 |
| 9 |
| 4 |
| 4 |
| 5 |
| 9 |
| 2 |
| 3 |
| 0 |
| 7 |
| 8 |
| 1 |
| 6 |
| 4 |
| 0 |
| 6 |
| 2 |
| 8 |
| 6 |
| 2 |
| 0 |
| 8 |
| 9 |
| 9 |
| 8 |
| 6 |
| 2 |
| 8 |
| 0 |
| 3 |
| 4 |
| 8 |
| 2 |
| 5 |
| 3 |
| 4 |
| 2 |
| 1 |
| 1 |
| 7 |
| 0 |
| 6 |
| 7 |
| 9 |
| 8 |
| 2 |
| 1 |
| 4 |
| 8 |
| 0 |
| 8 |
| 6 |
| 5 |
| 1 |
| 3 |
| 2 |
| 8 |
| 2 |
| 3 |
| 0 |
| 6 |
| 6 |
| 4 |
| 7 |
| 0 |
| 9 |
| 3 |
| 8 |
| 4 |
| 4 |
| 6 |
| 0 |
| 9 |
| 5 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
