Plotting w/o X
This might be interesting for non-X fans like me. I just found a nice way to plot to a simple terminal.
Using gnuplot you can enable terminal plots via set term dumb
. Here is an example:
gnuplot> set term dumb
Terminal type set to 'dumb'
Options are 'feed size 79, 24'
gnuplot> plot [0:6.3] sin(x)
1 ++---------+--*******-+---------+----------+----------+----------+-++
+ *** *** + + sin(x) ****** |
0.8 ++ * *** ++
| ** ** |
0.6 ++ ** * ++
| * ** |
0.4 ++ * * ++
| * ** |
0.2 +** * ++
0 ** ** +*
| ** *|
-0.2 ++ * **+
| ** * |
-0.4 ++ * ** ++
| ** * |
-0.6 ++ * *** ++
| ** ** |
-0.8 ++ *** * ++
+ + + + + *** +*** + |
-1 ++---------+----------+---------+----------+---********----------+-++
0 1 2 3 4 5 6
Very cool idea, isn’t it!? Ok, you can’t see much details, it might give you an overview even if you are just connected via SSH.
If anybody has an idea how to do it with R please tell me!
Leave a comment
There are multiple options to leave a comment: