Everything is due by 5PM next Tuesday.
Do not wait until the last minute! Many of you are guaranteed to run into technical issues!!
You will submit a pull request to the class website repository.
This PR will:
name.md where name is your first name.
For example, mine would be called kevin.md.FirstName LastName.Kevin Thornton.So, you were asked to have both of these installed by today (Thursday).
If you haven’t done this, then do so now.
Remember to get your “channels” set up so that you can use bioconda!
Install the following package(s) into R Studio (using the “install packages” bit of the interface):
Install the following package(s) via conda:
Now, in a new R Markdown document in R Studio, enter the following code:
```{r}
library(nycflights13)
data(flights)
```
```{python}
import pandas
print(type(r.flights))
print(r.flights)
```
At the top of a new R Markdown, there’s a “setup” block that often looks like:
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
In this block, you’ll want to state that you are using reticulate.
Some of you may need to also tell the system where your Python executable is:
include = FALSE do?You’ll have to figure out how to point your Rstudio to the Python binary on your Ubuntu system. Let us know how to do that! ;)
Press the knit button.
Fingers crossed, you should see a window pop up with an HTML rendering generated from your markdown.
With that working (famous last words), add the following markdown code to your document:
```{r}
data(mtcars)
```
```{python}
print(r.mtcars.head())
```
```{python}
import seaborn as sns
import matplotlib.pyplot as plt
g = sns.FacetGrid(r.mtcars, col="cyl")
g.map(sns.scatterplot,"wt","mpg");
plt.show()
```