Question
R programming: ## Q2. Pie chart and its improvement. (10pts) # First, create a vector called pie_vec, it has 12 elements that are integers from
R programming:
## Q2. Pie chart and its improvement. (10pts) # First, create a vector called pie_vec, it has 12 elements that are integers from 1 to 12 (ascending), # then name each element with the corresponding month abbreviation, e.g., 1 as Jan. # Create a 2D pie chart of pie_vec, the portions being the values of vector elements. # Then do the same thing with a 3D pie chart, with pie3D() function from package plotrix. # Make sure your plots show the name/label for each portion. # Combine the two plots into one overall graph. (Hint: par() or layout() function)
# Explain the issue with pie charts; and the issue with 3D pie charts. # Propose another graph type to visualize the same data, show code and explain why it's a good choice.
# Note: change the graphic device setting back to one plot on one graph after the pie chart comparison.
## Your code here:
## Your answer here:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started