1

I'm trying to apply a function from the corto package to generate a plot, but when I apply the specific code that this R package recommends I always get this error:

png("mra_datamatneg.png",w=2500,h=3000,res=300) 
mraplot(mra_datamatneg,mrs=5) 

Error in text.default(x = 0.5, y = 0.5, title, cex = cex, col = "black", : X11 font -adobe-helvetica-%s-%s---%d-------*, face 1 at size 16 could not be loaded**

I use Ubuntu 16.04 and R-4.0.3

But I don't know how I can solve it to be able to finally generate the plot. All the R packages of which it may have dependencies or import I already have them installed. Can someone help me, please?.


You can see in the plot to be generated with mraplotenter image description here function.

user20650
  • 24,654
  • 5
  • 56
  • 91
  • Hi, can you create a small reproducible example please to help debug whether if it is a problem with the package code or something local to your pc. (the package authors do not include any examples in `mra` & `mraplot` unfortunately which could be used) – user20650 Dec 19 '20 at 16:38
  • The following examples shows the 5 most differentially active regulons in Neuroblastoma MYCN Amplification. Unsurprisingly, the MYCN network is the most affected: # Alternatively, results can be plotted indicating a number of mrs shows the top deregulated (up or down png("plots/mra_mycnamp.png",w=2500,h=3000,res=300) mraplot(mra_mycnamp,mrs=5) dev.off() # pdf # 2 – Juan Manuel Luque Dec 19 '20 at 19:11
  • The above text belongs to a pdf (Master regulator analysis using the corto package-Vignette 1) about this corto package and it is the only example that I have until now relating to the code and error in output I submit using this code. – Juan Manuel Luque Dec 19 '20 at 19:19
  • I have just apply for to add or upload a image about the plot to be generated with the mraplot function – Juan Manuel Luque Jan 13 '21 at 13:02
  • Hi Juan; can you try to create a small [`reproducible example`](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) please? I remember at the time of your last comment I had to search for the relevant vignette file -- if you could edit your question to add www paths to where users can find them. Also, the vignette example was taking ages on my (very old and underpowered) laptop so in the end i had to stop it before getting to the plotting stage -- ... cont – user20650 Jan 13 '21 at 13:40
  • ... can you see if you can create steps to reduce the run-time (i.e. reduce the size of the data or no. of replications etc) and add these to your question. If you can create a small reproducible example, it makes it a lot easier for others to run the code and so hopefully you get an answer. (ps it may also be worth adding your system details) – user20650 Jan 13 '21 at 13:40

0 Answers0