Skip to content

Dar mishrs5 #64

Merged
merged 4 commits into from Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
644 changes: 644 additions & 0 deletions Assignment02/mishrs5-assignment2-f24.Rmd

Large diffs are not rendered by default.

4,191 changes: 4,191 additions & 0 deletions Assignment02/mishrs5-assignment2-f24.html

Large diffs are not rendered by default.

Binary file added Assignment02/mishrs5-assignment2-f24.pdf
Binary file not shown.
13 changes: 12 additions & 1 deletion StudentNotebooks/Assignment01/dar-f24-assignment1-template.Rmd
Expand Up @@ -4,11 +4,11 @@ subtitle: "DAR Assignment 1 (Fall 2024)"
author: "Your Name Here"
date: "`r format(Sys.time(), '%d %B %Y')`"
output:
pdf_document: default
html_document:
toc: true
number_sections: true
df_print: paged
pdf_document: default
---
```{r setup, include=FALSE}
# REQUIRE R PACKAGE INSTALLATIONS
Expand Down Expand Up @@ -309,6 +309,17 @@ pixl_trim.mat.pca <- prcomp(pixl_trim.mat, scale=FALSE)
ggscreeplot(pixl_trim.mat.pca)
```


Make a table indicating how many samples are in each cluster with k=3

```{r}
# clusters sizes are in the km object produced by kmeans
cluster.df<-data.frame(cluster= 1:5, size=km$size)
kable(cluster.df,caption="Samples per cluster")
```



## Create a PCA Biplot using ggbiplot

Now we'll create a biplot of the data colored by cluster and label by rock type.
Expand Down
44 changes: 40 additions & 4 deletions StudentNotebooks/Assignment01/dar-f24-assignment1-template.html

Large diffs are not rendered by default.

Binary file modified StudentNotebooks/Assignment01/dar-f24-assignment1-template.pdf
Binary file not shown.