It’s inconvenient to think about proper placement of labels for every new plot (below or above points, how far away?) Labels are overlapping with each other due to the rigid way we place them To plot only a few labels we would have to make tedious manual selection of points using additional variables Grouping is ignored for the labels and it’s not straight forward to implement it, so we have to go with the simple solution of painting them all grey. # function that puts text labels above/below pointsĬol = grey(0.5), cex = 0.7, pos = 3, offset = 1) Now the question is, which single protein or transcript is the most interesting (or ’differentially expressed’) between the two conditions? One of the easiest ways to look at the data is to plot condition A versus B. But for each condition we have several thousands of measurements obtained in parallel, thanks to the ‘Omics revolution. In computational biology (just as in any other data science field) we very, very often encounter the situation that we want to compare two biological conditions to each other, such as a control condition versus a treatment (e.g. bacteria grown on substrate A versus substrate B). Finally I got soįrustrated that I wrote my own panel function for text labels of points. Other more hacky solutions are not really appealing. Just that lattice plots are not compatible with the ggplot universe, and ![]() It’s not that there are no functions for text labels out there, it’s ![]() One-line function to add small text labels to points in a scatter plot However, one thing I was missing all the time is a simple But I am using latticeįor many years now, and came to like its look and customization The famous ggplot2 package for R has numerous packages extending its basic plot functions, including ggrepel that draws nice text labels for each point of a scatterplot.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |