l*****k 发帖数: 587 | 1 newbie question:
I read in a dataframe using R
some characteristics are related to sample
some characteristics are related patient, since patients have multiple
samples taken, patient_ID column has duplicates.
I wonder if there is an easy way to plot certain characteristics by
patient_ids, using histogram... | l*****k 发帖数: 587 | 2 got an answer.
library(ggplot2) [if not installed, install.packages("ggplot2")]
# subset and remove NA values
result <- remove_missing(unique(df[,c("patient_id","clinical name")]))
【在 l*****k 的大作中提到】 : newbie question: : I read in a dataframe using R : some characteristics are related to sample : some characteristics are related patient, since patients have multiple : samples taken, patient_ID column has duplicates. : I wonder if there is an easy way to plot certain characteristics by : patient_ids, using histogram...
|
|