Creating a heatmap map with geom_tile from ggplot2 in R (CC258)

  Рет қаралды 3,628

Riffomonas Project

Riffomonas Project

Күн бұрын

Пікірлер: 12
@sven9r
@sven9r 2 жыл бұрын
Jeah! Finally a plot! :) thanks again for this amazing series!
@Riffomonas
@Riffomonas 2 жыл бұрын
Hah! Thanks for watching, I'm glad you enjoy the videos - I'm learning a lot too!
@djangoworldwide7925
@djangoworldwide7925 2 жыл бұрын
I always learn so much from your videos. The best practice is the reproducibility
@Riffomonas
@Riffomonas 2 жыл бұрын
Thanks! I appreciate your continued watching 🤓
@cristinacampbell7372
@cristinacampbell7372 2 жыл бұрын
Hey Pat, I'm having a problem getting my dates in my CSVs to be read the same in R. It seems like the format is the same in the CSV file (I checked the date format two ways. First by Rt clicking the column and using format cell to put both CSVs in the same format. Second, formatted by clicking on Data in the top ribbon of excel and going to Text to Columns and verifying the column data format is the same.) When I bind those dataframes the dates look different. The wrong one is being read this way: 8/11/2021 (DMY) 17:00, the good one looks like this: 2022-08-14 (YMD) 17:00. Here's my code just in case it helps. bind% mutate(time=as.character(time)) %>% separate(col=time, into =c("date", "time"), sep = " ") dat% mutate(year=year(date), month=month(date), day=day(date), month=as.factor(month), type=as.factor(type)) %>% drop_na(month) new% select(dl, time, temp, type, year, month, day) %>% mutate(month = factor(month, levels=c("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"), labels = c("Jan", "Feb", "March", "April", "May", "June", "July", "Aug", "Sep", "Oct", "Nov", "Dec"))) By the time I get to my code called "new" the CSV with problems is reading year as day, month as month, and day as 20 (the first 2 numbers in the year 2021) (DMY). Yet, nothing I seem to do in the CSV files seem to make a difference. Please help!! I have a TON of CSV files and many of them have this problem. Thanks!! Wish I could take a workshop with you. I run into problems like these all the time and stack overflow can't answer them all ;(
@cristinacampbell7372
@cristinacampbell7372 2 жыл бұрын
NM Pat just figured it out. I need to go to custom and get the data into a YYYY/M/D h:mm:ss. Wow! That took a good several hours to realize I had a big problem with my data to finding this simple solution. At least it's solved.
@Riffomonas
@Riffomonas 2 жыл бұрын
Wonderful - glad you got it figured out ☺
@N1loon
@N1loon 2 жыл бұрын
Maybe I missed it in one of your previous videos, but why did you switch from RStudio to VS Code?
@Riffomonas
@Riffomonas 2 жыл бұрын
Thanks for asking! This project is being done with conda to keep track of software and libraries and snakemake to keep track of dependencies. I find that those are a lot easier to work with outside of RStudio. Also, this project is a good example of how you might interact with tools on a high performance computer that doesn't allow a GUI interface like would be required for RStudio.
@N1loon
@N1loon 2 жыл бұрын
@@Riffomonas Interesting! Thanks for clarifying :)
@PhilippusCesena
@PhilippusCesena 2 жыл бұрын
Excellent! A small change: you forgot to remove the ticks from the x-axis
@Riffomonas
@Riffomonas 2 жыл бұрын
Oh my! You're right 🤓 I'll have to come back and get those in a future episode
How to force Snakemake to rerun a rule and visualize a pipeline (CC257)
14:20
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 4,3 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 7 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 694 М.
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 2,4 МЛН
Geospatial Map Visualizations in R
12:58
Business Science
Рет қаралды 26 М.
STAT 385 // fa24 // Intro to Shiny
40:09
Daniel Eck
Рет қаралды 231
Creating a stacked barchart in R with ggplot2 (CC102)
22:19
Riffomonas Project
Рет қаралды 34 М.
Creating a Heatmap in R | ComplexHeatMap tutorial p1
26:06
LiquidBrain Bioinformatics
Рет қаралды 19 М.
How to Create Heatmaps in R with the geom_tile() and heatmap() functions.
20:13
Cómo meter un TELÉFONO en un aula📲 #cortos
0:28
Jelly Jail Spanish
Рет қаралды 1,1 МЛН
НЕ ПОКУПАЙ iPhone 17 Air!
0:40
ÉЖИ АКСЁНОВ
Рет қаралды 5 МЛН
Introducing the "VitaWear SmartBand,"😳 a next-gen wearable gadget🎉
0:26
Shreya fun shorts
Рет қаралды 4,5 МЛН
Секрет Моего ПК
1:00
George
Рет қаралды 852 М.