Skip to content

Commit

Permalink
Merge pull request #44 from tsinha15/main
Browse files Browse the repository at this point in the history
tsinha5 HW1
  • Loading branch information
JEFworks authored Jan 30, 2024
2 parents 9bea577 + 0cbdc1e commit 3a5b282
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions _posts/2024-01-27-tsinha5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
layout: post
title: "Heatmap of the ACAP3 gene"
author: Tanishk Sinha
jhed: tsinha5
categories: [ HW1 ]
image: homework/hw1/HW1_tsinha5.png
featured: false
---

### What data types are you visualizing?
I am visualizing quantitative data of the expression count of the ACAP3 gene within a single cell and spatial data regarding the x,y position for each bead within which the RNA count is measured.

### What data encodings (geometric primitives and visual channels) are you using to visualize these data types?
I am using the geometric primitive of points to represent each bead. To encode expression count of the ACAP3 gene, I am using the visual channel of color hue from red to blue. To encode the spatial position of the bead, I am positioning the points along the x (600 to 1100) and y (800 to 1150) axis. Color hue from red to blue is also being used in the legend to encode expression count of the ACAP3 gene.

### What about the data are you trying to make salient through this data visualization?
My data visualization seeks to make more salient the relationship between the density of ACAP3 gene expression count and the position within a cell.

### What Gestalt principles or knowledge about perceptiveness of visual encodings are you using to accomplish this?
The principle of similarity is used to identify areas of similar ACAP3 gene expression density.

```{r}
data2 <- read.csv('eevee.csv.gz', row.names = 1)
data <- data2
library(ggplot2)
ggplot(data, aes(x = aligned_x, y = aligned_y)) +
#making the tiles, reference source: https://github.com/rstudio/cheatsheets/blob/main/data-visualization.pdf
geom_tile(aes(fill = ACAP3, width = 14, height = 14)) +
#square tiles, reference source: https://r-charts.com/correlation/heat-map-ggplot2/
coord_fixed() +
#color gradient, reference source: https://r-charts.com/correlation/heat-map-ggplot2/
scale_fill_gradient(low = 'blue', high = 'red')
Binary file added homework/hw1/HW1_tsinha5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3a5b282

Please sign in to comment.