Hi,
What is the name of this plot and how can I draw it?
This plot shows the expression of genes over time.
I have searched on google, but I haven't found its name.
Thanks
Hi,
What is the name of this plot and how can I draw it?
This plot shows the expression of genes over time.
I have searched on google, but I haven't found its name.
Thanks
Those are standard line plots/charts which you can do in base R with plot(values, type = 'l') or any number of other plotting functions such as ggplot() or the already mentioned matplot().
In this case, values have to be one of the columns or rows of the matrix. To plot all on the same graph, initialize the plot with plot( ... ,type='n') to not plot anything then loop through the columns to add them with line(). matplot() is essentially a wrapper for this and definitely a shorter way to do this if you want to plot all columns of your matrix on the same graph.
I am afraid bioinformatics is more than just using one magic package that produces directly publishable images...
I don't know from which study the images are, but I can guess that they first did thorough analysis before they ended up with these figures. It looks like they used clustering first, (like fuzzy clustering or k-means), and then they plotted some of the clusters (using z-scores). I think they have used matplot()
, since it looks very similar to plots I have made with matplot()
.
If the images you posted are from a publication, the methods section should give you information on how to do this.
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
These plots can be made in R with
matplot()
https://stat.ethz.ch/R-manual/R-devel/library/graphics/html/matplot.html