Closed:R, plot text table
2
0
Entering edit mode
4.8 years ago
akang ▴ 110

I am trying to plot a text table like below in R but with no luck. Any idea how this could be done? I want table with highlighted cells according to text Example, Cell highlight in green if text is a2, and blue if text is b2, half green and half yellow if text is a2/f1. In the following example ID is the sample ID and Column name is the name of the segment of the genome. Column values are the segment designation. Here is an example of what I am aiming at (Figure 5 of the manuscript) https://www.tandfonline.com/doi/pdf/10.1038/emi.2017.60.

table1

ID AA AB AC AD AE
1   a2  a2  b1  c1   a2
2   b1  a2  a2/f1 c1 a2
3   b1  b1  a2/f1 c1 a2

data<-read.table("mydata", header=TRUE)

do not know how to go any further. Ill appreciate any help.

R Plot • 179 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1546 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6