Resizing and Scaling Charts in R Python

You have you have an R or Python chart but it renders very small. How can you resize it? 

The Functions to Resize the Canvas

These functions will set the max size that the image is capable of rendering. 

For R, you can append the following line before the periscope.image() function


For Python, if you're using matplotlib, you can try something like the following (which will set the figure canvas to 5 x 5 inches). For more information on sizing the figure object, here's a link to the documentation.




Font Sizes and Caveats

If you're using a library like R's wordcloud library, you will need to use the scale parameter to adjust the sizing of the fonts since png() will only change the canvas but not the font scaling of the word clouds. 

1reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
Like4 Follow
  • 5 mths agoLast active
  • 1Replies
  • 600Views
  • 2 Following