I'm new to R, and trying to use it to graph and analyze flow cytometry data sets. The end goal is to upload group of csv/excel files, concatenate them and graph different combinations of variables, but I'm struggling with getting the first data set to work.
library(tidyverse)
library(dplyr)
library(ggplot2)
library(readxl)
#load xls to df lscells
lscells <- read_xls('source.xls')
lscells <- data.frame(lscells)
#column in position 11 has been renamed to be more manageable
lscells <- lscells %>%
rename_at(11, ~ 'Gr_Median_A')
#graph dose response plot with concentration (col4) the x axis, and 488 signal as the Y (col11)
#Discrete curves should be generated and segregated by compound (col3)
ggplot(data=lscells, aes(x = "Concentration", y = "Gr_Median_A"))
+ geom_point(aes(color=Compound))
The column name is being changed, but the generated plot does not recognize the data, putting a single point at (0,0). Currently Concentration is stored as num, and y is int. (Compound is currently int).
I can get the following to work in matplot by following the advice of other threads, but for some reason it won't work on ggplot
matplot(
x = lscells$'Concentration',
y = lscells$'Gr_Median_A',
type = 'pl',
main = 'endocytosis',
log = 'x',
pch = 16,
)