Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions _posts/2021-09-13-insert-post-title/insert-post-title.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: "My First Post"
description: "A introduction of myself. Use distill::create_post to create a Rmarkdown."
Allyson Beach
date: 09-13-2021
output:
distill::distill_article:
self_contained: false
draft: true
---


```{r setup, include=FALSE}
library(ggplot2)
library(dplyr)

x <- seq(1, 10)
y <- x*2

```

**Plot of just y = x*2**

```{r, echo = FALSE}
df <- data.frame(x,y)
plot(x,y)

knitr::opts_chunk$set(echo = FALSE)

```

Distill is a publication format for scientific and technical writing, native to the web.

Learn more about using Distill at <https://rstudio.github.io/distill>.


45 changes: 45 additions & 0 deletions _posts/2021-09-13-title/allyson_beach_hw_1.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
title: "HW 1"
author: "Allyson Beach"
date: 09-13-2021
output:
distill::distill_article:
self_contained: false
draft: true
---


```{r setup, include=FALSE}
library(ggplot2)
knitr::opts_chunk$set(echo = TRUE)
```
## Introduction
Hello everyone! My name is Allyson Beach. I have never used R before this course, but am excited to learn more about it. I am in my final semester in the CS masters program. For this first post, I will plot some simulated data.

## Objective
We will create a vector through the sequence function from 1 to 10 by increments of 1 (default). We will then plot this data with ggplot2 package as a function of y = 2x.

## Data
```{r data}
x <- seq(1, 10)
x
y <- x*2
y
```
We can also change the x data to be incremented by 2.

```{r data2}
x <- seq(1,20, 2)
x
y <- x*2
y
```
Here we will plot the data using the ggplot2 package.

```{r plot}
figure <- ggplot2::qplot(x,y)
show(figure)
```



Loading