News for hackers. Stuff that matters.
Re:R is a joy if you treat it like Awk by Myrmornis on Monday October 07, 2019 @03:54PM (#21185256)
dwodri: Not sure if you're a MacOS user, but iTerm2 distributes a script to display images inline in the terminal. I've forgotten how to get R to output png data directly to stdout, but it could be nice to do that and display the images inline in the terminal

https://www.iterm2.com/documentation-images.html

Re:R is a joy if you treat it like Awk by dwrodri on Monday October 07, 2019 @04:01PM (#21185328)
I do in fact use macOS, but I'm more preferential towards kitty[1]. Sadly, OpenGL is getting deprecated in macOS Catalina so I will probably crawl back to iTerm2 eventually.

I'm quite familiar with asciinema[2] as well, which I've considered using for creating animated examples. In general, I like to err on the side of caution, and optimize my website for people with poor/metered connections.

Also, I didn't expect this to get this much attention! Mea culpa for not putting more work into the post itself.

1 = https://sw.kovidgoyal.net/kitty/index.html 2 = https://asciinema.org/

Re:R is a joy if you treat it like Awk by Myrmornis on Monday October 07, 2019 @05:49PM (#21186316)
We might be miscommunicating! Or if not, sorry if I didn't understand what you said in reply.

What I was trying to say is: how about extending your blog post with one line to show people how to make the boxplot appear in their terminal as soon as they run the command? (I think at the moment it's going to appear as a PDF file named Rplots.pdf in the current directory, right?)

Re:R is a joy if you treat it like Awk by dwrodri on Monday October 07, 2019 @06:02PM (#21186442)
This is correct. A good cross platform tool for rendering images in many modern terminal emulators is imgcat[1]. iTerm2 appears to use this under the hood.

1 = https://github.com/eddieantonio/imgcat

Re:R is a joy if you treat it like Awk by daleroberts on Monday October 07, 2019 @07:02PM (#21186913)
This has been done in the Python ecosystem with matplotlib:

https://github.com/daleroberts/itermplot

Re:R is a joy if you treat it like Awk by citrate05 on Monday October 07, 2019 @09:18PM (#21187750)
There's also txtplot (https://cran.r-project.org/web/packages/txtplot/index.html), which is low-resolution but cross-platform...