Which of the following package by Yihui is built in to RStudio environment?

rpy2
knitr
ggplot2
none of the mentioned

The correct answer is: C. ggplot2

ggplot2 is a plotting package for the R programming language, and is considered one of the most important packages for data visualization in R. It is built on the grammar of graphics, which provides a consistent and flexible way to create graphics. ggplot2 is also highly customizable, allowing users to create a wide variety of graphics.

rpy2 is a package that allows R to interact with Python. It is not built into RStudio, but can be installed and used with RStudio.

knitr is a package that allows R code to be embedded in documents. It is not built into RStudio, but can be installed and used with RStudio.

None of the other options are built into RStudio.