R - Plot Only Text

后端 未结 4 733
予麋鹿
予麋鹿 2021-02-05 04:45

Curious how one might create a plot with only text information. This will essentially be a \"print\" for the plot window.

The best option I\'ve found so far is the foll

4条回答
  •  醉梦人生
    2021-02-05 05:10

    Here's a handy example to play with too:

    par(mar = c(0,0,0,0))
    plot(c(0, 1), c(0, 1), ann = F, bty = 'n', type = 'n', xaxt = 'n', yaxt = 'n')
    
    text(x = 0.34, y = 0.9, paste("This is a plot without a plot."), 
         cex = 1.5, col = "black", family="serif", font=2, adj=0.5)
    
    text(x = 0.34, y = 0.6, paste("    Perhpas you'll:"), 
         cex = 1.2, col = "gray30", family="sans", font=1, adj=1)
    text(x = 0.35, y = 0.6, paste("Find it helpful"), 
         cex = 1.2, col = "black", family="mono", font=3, adj=0)
    

    enter image description here

提交回复
热议问题