I have gathered some data from different sources and now I have a big dataframe that is full of pathway names in the first column and some scores across its columns. Now I want to build an rshiny tool which allows the users to click on some of the values, like pathway names, and get a new page/tab with a dataframe that contains details about that specific pathway name clicked. I already have all the information/dataframes in my workspace but dont't know how to make an interactive rshiny tool to make it accessible for other users.
A bigger question is whether rshiny can handle this kind of a case.
Ive built rshiny tools before that uses the information from dataframes to give you interactive graphs and etc. but never done an interactive dataframe tool. Any lead would help. Thanks!
Here is an example df
df1 <- as.data.frame(matrix(c("PathwayX","10","5","3","PathwayY","30","8","6","PathwayZ","20","6","2"), ncol = 4,byrow =T))
colnames(df1) <- c("PathwayName","Score1","Score2","Score3")
pathwayX <- as.data.frame(matrix(c("OrganismA","xxx2","xxx1","xxx3","xxx6","xxx7","xxx10","xxx19","0.20","0.30",
"OrganismB","xxx2","xxx1","xxx3","xxx6","xxx7","xxx10","xxx19","0.40","0.50"),nrow = 2, byrow = T))
colnames(pathwayX) <- c("OrganismName","Gene","Gene","Gene","Gene","Gene","Gene","Gene","Score1","Score2")
I want to be able click on 'PathwayX' on my rshiny table df1 and pop up a new page or tab that gives me df2. I hope this is more helpful.