Skip to main content
1 of 2

Using org-table data for R block

I'd like to be able to plot in an orgbabel chunk these data I have in a org-table:

#+TBLNAME:amount
| date             | amount
|------------------+--------|
| <2022-01-30 Sun> |   55.1 | 
| <2022-01-31 Mon> |   54.7 |
| <2022-02-01 Tue> |   54.5 |
| <2022-02-02 Wed> |   55.1 |
| <2022-02-03 Thu> |   54.2 |
| <2022-02-04 Fri> |   54.1 |
| <2022-02-05 Sat> |   53.9 |
| <2022-02-06 Sun> |   54.1 |

The idea is to use these data in a R block and plot amount (y axis) as a function of date (x axis):

#+BEGIN_SRC R 
#+END_SRC

How to reference the data?

Thanks!