all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tak Kunihiro <homeros.misasa@gmail.com>
To: Marcin Borkowski <mbork@mbork.pl>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: Plotting in Emacs?
Date: Tue, 18 Apr 2023 16:39:46 +0900	[thread overview]
Message-ID: <m2y1mpoczh.fsf@misasa.okayama-u.ac.jp> (raw)
In-Reply-To: <87a5z56d0j.fsf@mbork.pl> (Marcin Borkowski's message of "Tue, 18 Apr 2023 06:16:28 +0200")

I suggest to use org-babel with R.

1. Install R.
2. Create a file `weight.org'.
3. Paste following lines and save.
4. M-x org-babel-execute-buffer

I spent significant time on this system.  On this system, debug is hard.
Thus I do not suggest to do something complicated more than weight chart
using org-babel with R.

#+tblname: orgtbl0
| rownames | col1 | col2 |
|----------+------+------|
| day 1    |    1 |   60 |
| day 2    |    2 |   59 |
| day 3    |    3 |   58 |
| day 4    |    4 |   57 |
| day 5    |    5 |   58 |

#+header: :var dframe=orgtbl0 :rownames yes :colnames yes
#+header: :file plot.png
#+begin_src R :results graphics file :exports results
xx   <- dframe[,1]
yy   <- dframe[,2]
plot(xx,yy)
#+end_src



  parent reply	other threads:[~2023-04-18  7:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-18  4:16 Plotting in Emacs? Marcin Borkowski
2023-04-18  4:38 ` Jean Louis
2023-05-23 17:14   ` Marcin Borkowski
2023-04-18  7:39 ` Tak Kunihiro [this message]
2023-05-20  7:55   ` Marcin Borkowski
2023-05-20  8:26 ` Daniel Fleischer
2023-05-23 17:18   ` Marcin Borkowski
2023-05-23 18:07     ` Daniel Fleischer
2023-05-24  4:36       ` Marcin Borkowski
2023-05-25  2:32     ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2y1mpoczh.fsf@misasa.okayama-u.ac.jp \
    --to=homeros.misasa@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mbork@mbork.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.