Warning Midterm Exam (Part 2 of 2) on Jan 9, 2025, 3:30–5:30 PM. at RB3208 Total Score: 15% (5% Multiple Choice, 10% Writing R Code). Topics: - Data Structure: Data Frame - Data Wrangling - Data Structure: XTS Project 1: 10% Create your CV using Quarto and upload the HTML and related files to CMU’s personal web hosting. 1. Submit your HTML file to your CMU personal web hosting. 2. Zip your project folder. The zip file should include the .qmd file, any image files, and CSS files (if used). I will render your files to compare them with your URL. Send your URL and the zip file to my email: somsak.c@icdi.cmu.ac.th before midnight on January 5, 2025. Content Requirements: Your CV must include: - Your picture - Your birthday - Your education - Your hobbies - Links to at least 2 social media platforms - Your future plans Criteria: 1. The HTML file and .qmd file must match. 2. Use a theme. 3. Use CSS. 4. Include a table. 5. Include a tabset 6. Include a video. 5. Use icons from Font Awesome (e.g., Facebook, YouTube, LINE, WeChat, etc.). 8. Modify the layout creatively.
Additional Note: Some of your score will be determined by votes from your peers.
Multiple Choices: Based Plot: Curve Plot
What is the primary purpose of the curve() function in R? ::: {.cell}
Which argument in the curve() function is used to specify the mathematical expression to plot? ::: {.cell}
:::
How do you specify the range of x-values for a plot created using curve()? ::: {.cell}
:::
What type of object can be passed as the expr argument in curve()? ::: {.cell}
:::
Which of the following commands correctly plots the sine function from -π to π using curve()? ::: {.cell}
:::
How can you change the line color in a plot generated by curve()? ::: {.cell}
:::
Which argument in curve() would you use to change the number of points plotted on the curve? ::: {.cell}
:::
How can you add a title to the plot created by curve()? ::: {.cell}
:::
What happens if you set the add = TRUE argument in curve()? ::: {.cell}
:::
Which of the following would plot the function y = x^2 from -5 to 5? ::: {.cell}
:::
What does the add = TRUE argument do in the curve() function? ::: {.cell}
:::
What is the default type of plot produced by the curve() function in R? ::: {.cell}
:::
If you want to plot a curve from x = -10 to x = 10 with 200 points, what would you do? ::: {.cell}
:::
To plot the function y = sqrt(x) for values of x from 0 to 25, what would you use? ::: {.cell}
:::
How can you plot multiple mathematical expressions on the same graph using curve()? ::: {.cell}
:::
Which argument in curve() allows you to customize the line type of the curve? ::: {.cell}
:::
How would you add labels to the x-axis and y-axis while using curve()? ::: {.cell}
:::
Which of the following is a correct way to plot a quadratic function y = x^2 from -3 to 3 using curve()? ::: {.cell}
:::
What will the following command do?
curve(sin(x), from =0, to =2*pi, col ="red", lty =2)
How would you display a curve with a log-scaled y-axis using curve()?