Entering edit mode
8.3 years ago
1769mkc
★
1.3k
I can make box plot using the base R plot ,but I want to do the same with ggplot2 , its not as simple as making it in normal boxplot function ,
This is my data frame
Gene `7256_Mono` `7653_Mono` `6792_Mono` `6792_HSC` `7653_HSC` `7256_HSC`
DNMT3A 9.8143600 5.5681400 3.32429000 7.7649600 7.8304600 21.9411000
DNMT3B 0.1053070 0.0826214 0.20910300 2.3988700 3.3696100 3.9184700
So this is my subset of data set how do I coerce this dataframe into ggplot data format , i have read tutorials but it quite confusing ,I have to make factors which is used in the ggplot , so how do i make factors out of this data sets so that I can use it for ggplot and make box plot out of it. Any help and suggestion would be highly appreciated .
Take a look a tidy data, tidyverse and perhaps this older answer.
Oh! I just noticed that you asked the question in the answer I mentioned! OK, here the solution will be similar I believe. If you have some trouble, try giving us the actual code you used (applied on the example data you provided).
okay I will use the same so i can use reshape the data to make it for the ggplot form i suppose i will give it a try first and lets see if I get the same or not