r - Output Stem and Leaf Plot to Image -


I am trying to output stem and leaf plot in R as an image. I'm not sure if there is a good library that can complete it but I have tried some code below.

  jpeg (filename = "stem.jpeg", width = 480, (= 1, width = 40)) text (0,1, paste (tmp, collapse = '\ n') , Code == (0,1), family = 'mono') dev.off ()  

The above code is in the saved data, but it looks very blurry and the plot It gets pretty bad when adding histogram to an image, R is doing a good job to scale everything to the size of the image. Stem (male, scale = 1, width = 40)

  jpeg (filename = "stem.jpeg", width = 480, height = 480, units = "px", number = 12) Dev.off ()  

It created an image but there was no content in it.

Any thoughts? Thanks!

That's because stem and leaf plot do not make a picture of the text you sync command, you can save the text as follows:

  sync (file = "stem.txt") stem (male, scale = 1, width = 40) sync (file = null) Unlink ("stem.txt")  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -