HackMD
  • Prime
    Prime  Full-text search on all paid plans
    Search anywhere and reach everything in a Workspace with Prime plan.
    Got it
      • Create new note
      • Create a note from template
    • Prime  Full-text search on all paid plans
      Prime  Full-text search on all paid plans
      Search anywhere and reach everything in a Workspace with Prime plan.
      Got it
      • Sharing Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • More (Comment, Invitee)
      • Publishing
        Everyone on the web can find and read all notes of this public team.
        After the note is published, everyone on the web can find and read this note.
        See all published notes on profile page.
      • Commenting Enable
        Disabled Forbidden Owners Signed-in users Everyone
      • Permission
        • Forbidden
        • Owners
        • Signed-in users
        • Everyone
      • Invitee
      • No invitee
      • Options
      • Versions and GitHub Sync
      • Transfer ownership
      • Delete this note
      • Template
      • Save as template
      • Insert from template
      • Export
      • Dropbox
      • Google Drive
      • Gist
      • Import
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
      • Download
      • Markdown
      • HTML
      • Raw HTML
    Menu Sharing Create Help
    Create Create new note Create a note from template
    Menu
    Options
    Versions and GitHub Sync Transfer ownership Delete this note
    Export
    Dropbox Google Drive Gist
    Import
    Dropbox Google Drive Gist Clipboard
    Download
    Markdown HTML Raw HTML
    Back
    Sharing
    Sharing Link copied
    /edit
    View mode
    • Edit mode
    • View mode
    • Book mode
    • Slide mode
    Edit mode View mode Book mode Slide mode
    Note Permission
    Read
    Only me
    • Only me
    • Signed-in users
    • Everyone
    Only me Signed-in users Everyone
    Write
    Only me
    • Only me
    • Signed-in users
    • Everyone
    Only me Signed-in users Everyone
    More (Comment, Invitee)
    Publishing
    Everyone on the web can find and read all notes of this public team.
    After the note is published, everyone on the web can find and read this note.
    See all published notes on profile page.
    More (Comment, Invitee)
    Commenting Enable
    Disabled Forbidden Owners Signed-in users Everyone
    Permission
    Owners
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Invitee
    No invitee
       owned this note    owned this note      
    Published Linked with GitHub
    Like BookmarkBookmarked
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # R for Biologists Workshop This document will contain relevant links, information, and allow us to quickly and collaboratively share code with good formatting. Brady's Twitter: [@bradyajohnston](https://twitter.com/bradyajohnston) #### **Zoom Info** * Zoom link: https://uwa.zoom.us/j/94747101358?pwd=V0NqQ1dJaW1sU0J5ZVIyV0Rta0huQT09 * Zoom password: 546735 #### **Course outline and info:** [Web outline here](https://plavskin.github.io/Intro_R_Course/) [Download all files here:](https://github.com/plavskin/Intro_R_Course) [Rstudio Cheat sheet](https://rstudio.com/resources/cheatsheets/) [Markdown cheat sheet](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet) #### Anonymous Feedback form: https://forms.gle/7uuEMs47SuK5Nsm56 #### Session recordings: If any of these don't work, send me an email. Session: 1. [Recording](https://cloudstor.aarnet.edu.au/plus/s/XgsaIikbrBmIhoy), Password: 6eTQkyMH-qga 1. [Recording](https://cloudstor.aarnet.edu.au/plus/s/S6U7mTIdMajHpba), Password: Vs7hmZ7qU2-Y 1. [Recording](https://cloudstor.aarnet.edu.au/plus/s/0q99qErgvjlN6Ee), Password: Brp7CL+HLtRS 1. [Recording](https://cloudstor.aarnet.edu.au/plus/s/eKaeJkVcnKJCajn), Password: xJpHoC!h3V2d 1. [Recording](https://cloudstor.aarnet.edu.au/plus/s/7APQ4iNzTE7VRP3), Password: GaFdz4!uznE2 2. [Recording](https://cloudstor.aarnet.edu.au/plus/s/BN3ZdibDsEgihcv), Password: Sf=6eALB6uMB 3. [Recording](https://cloudstor.aarnet.edu.au/plus/s/xDy2iJhGe9Blzf6), Password: zdZpyda8*ctg 4. [Recording](https://cloudstor.aarnet.edu.au/plus/s/RSSWu3iXqAqsMIt), Password: 7PfQkM2wU@SH 5. [Recording](https://cloudstor.aarnet.edu.au/plus/s/CgnZvsXXHDcdFkT): Password: -gmkneK4TnBU ### **Introductions:** Use this space to introduce yourself! Just a brief bio about research you do, coding experience you might have etc. Hello, I'm Soodeh Hey guys, Heidar here Hi I am Federica from Milan, Italy :) Hi Brady, thanks for the workshop! Kalia I am Paula (Pau VT), from Germany, but originally from Chile Hello! **Hello! My name is Brady, and I am from Perth, australia. It is nice to have you all here!** Hello Brady Hi everyone, this is Sam, I'm from Perth WA. Hello all! I'm Callum and I'm from Perth Aus! Hello, my name is Ayeisha and I am also from Perth, Australia. Hello, My name is Khyati and am from India. G'day, my name is James, currently in Perth. Hello, my name is Alessio and I am from Lombardy, Italy Hello! I'm Jacob - from Perth, Australia. Hi I'am Julie Mallet, from France Hi everyone, my name is Giada, I'm from Italy! ## Class 1 - R / Rstudio Installation R version 4.0 has just been released! This is very exciting (for a number of nerdy reasons) but in this course we will be using R version 3.6.3 (you can use some version of 3.6.x) to keep things consistent with the materials. #### Installing `R` and `Rstudio` There is a great guide on how to download and install R if you haven't already, than can be found [here](https://plavskin.github.io/Intro_R_Course/Workshop_1.nb.html#downloading-installing-and-navigating-rstudio). If you get lost try following [this one](https://www.datacamp.com/community/tutorials/installing-R-windows-mac-ubuntu) instead. Rstudio is not much use to you without R installed, and using R without Rstudio is a lot more effort than it is worth. Ensure that you have both installed, and that Rstudio boots up. #### Try setting up your screen like this, in order to follow along. ![](https://i.imgur.com/P48LUXi.jpg) Downloading the R-markdown document for the first session [here](https://www.dropbox.com/sh/etpexuvc4vpiiz9/AACtRwfd8iBDvHhq_p-CGKWza?dl=0). ## Class 2 - Variables, types and functions. [Download second file here.](https://www.dropbox.com/s/003hdg5gj29sfnp/Workshop_2.Rmd?dl=0) ### Let's talk about variables and functions. ## Class 3 - Intro to Vectors [Class 3 Files.](https://www.dropbox.com/s/gz7fh11heib933z/Workshop_3.Rmd?dl=0) Posting of code: ## Class 4 - Logical Operations [Link to files](https://www.dropbox.com/s/pt63nktr3hjuk7n/Workshop_4.Rmd?dl=0) ## Class 5 - Dataframes! [Linke to files](https://www.dropbox.com/s/vzdf4fwwrgegkhw/Workshop_5.Rmd?dl=0) [Link to iris files](https://www.dropbox.com/s/8t66gfyi60dc8zp/iris.csv?dl=0) ## Class 6 - Plotting your data with ggplot2. If you haven't download the files [here](https://www.dropbox.com/s/vbqcvyv8s0x31qw/Workshop_6.Rmd?dl=0): Let's start posting out plots. ## Class 7 If you have not downloaded files, download here: [Here](https://www.dropbox.com/s/swukoel23ofei09/Workshop_7.Rmd?dl=0) ## Class 8: Programming with R | Part 1 Prograaming with R. Files [here](https://www.dropbox.com/s/lzr2mr1sq8p1vla/Workshop_8.Rmd?dl=0) ## Class 9: Programming with R | Part 2 Files available [here](https://www.dropbox.com/s/cklocisi9exkuli/Workshop_9.Rmd?dl=0). If you didn't save have success with making a function to make the plants grow, use the example one below: ```{R} grow_plants <- function(df, dog, growth_amount, sd){ growth_heights = rnorm(n = 3, mean = growth_amount * dog, sd = sd) new_df_values <- data.frame( day = rep(dog, 3), height = growth_heights, plant.id = LETTERS[1:3] ) output_df <- rbind(df, new_df_values) return(output_df) } ```

    Import from clipboard

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lost their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template is not available.


    Upgrade

    All
    • All
    • Team
    No template found.

    Create custom template


    Upgrade

    Delete template

    Do you really want to delete this template?

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Tutorials

    Book Mode Tutorial

    Slide Mode Tutorial

    YAML Metadata

    Contacts

    Facebook

    Twitter

    Feedback

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions

    Versions and GitHub Sync

    Sign in to link this note to GitHub Learn more
    This note is not linked with GitHub Learn more
     
    Add badge Pull Push GitHub Link Settings
    Upgrade now

    Version named by    

    More Less
    • Edit
    • Delete

    Note content is identical to the latest version.
    Compare with
      Choose a version
      No search result
      Version not found

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub

        Please sign in to GitHub and install the HackMD app on your GitHub repo. Learn more

         Sign in to GitHub

        HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Available push count

        Upgrade

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Upgrade

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully