Communication and Social Networks (Fall 2022)/R Lab 1: Difference between revisions
From CommunityData
(Copying content from previous class) |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
# Create your first network graph | # Create your first network graph | ||
You should have | You should have already logged into the Scholar instance of RStudio. In practical terms, that means there should be an RStudio icon somewhere on you computer. If you open RStudio at https://rstudio.scholar.rcac.purdue.edu:8787/auth-sign-in, it should look something like this: | ||
[[File:Rstudio.png|thumb|upright=2.6|center|RStudio image from [https://en.wikipedia.org/wiki/RStudio Wikipedia]]] | [[File:Rstudio.png|thumb|upright=2.6|center|RStudio image from [https://en.wikipedia.org/wiki/RStudio Wikipedia]]] | ||
If | If something isn't working, then revisit the [[../Scholar Setup|Scholar Setup tutorial]] and if you still can't get it then reach out on Discord and we'll get it figured out. | ||
* [https://rmarkdown.rstudio.com/lesson-1.html Install R Markdown] | * [https://rmarkdown.rstudio.com/lesson-1.html Install R Markdown] | ||
* | * Open the <code>lab_1_r_markdown.Rmd</code> file that you loaded in the [[../Scholar Setup|Scholar Setup tutorial]] | ||
** Read through the file and try "knitting" it to an output document | ** Read through the file and try "knitting" it to an output document | ||
** Finish the | ** Finish the exercises and "knit" the file again and see how it changes the output document | ||
** Knit the file into a PDF or Word document and upload it to Brightspace |
Latest revision as of 14:41, 6 September 2022
This lab has three goals:
- Get your R environment is set up correctly
- Introduce you to the idea of R Markdown files
- Create your first network graph
You should have already logged into the Scholar instance of RStudio. In practical terms, that means there should be an RStudio icon somewhere on you computer. If you open RStudio at https://rstudio.scholar.rcac.purdue.edu:8787/auth-sign-in, it should look something like this:
If something isn't working, then revisit the Scholar Setup tutorial and if you still can't get it then reach out on Discord and we'll get it figured out.
- Open the
lab_1_r_markdown.Rmd
file that you loaded in the Scholar Setup tutorial- Read through the file and try "knitting" it to an output document
- Finish the exercises and "knit" the file again and see how it changes the output document
- Knit the file into a PDF or Word document and upload it to Brightspace