Skip to content
Prev 377503 / 398502 Next

[R studio] Plotting of line chart for each columns at 1 page

For your first question, yes, you will need to adjust the number of "x"
values to match the number of "y" values. You can use the "nrow" function
to get that number. I don't really know what the abscissa scale is on your
plots, I just made up the data I used.

If you are comparing countries, you may want to divide the results into
countries of different characteristics, perhaps GDP or similar. Otherwise
you will end up with a quite large PDF page. This is okay if you are
viewing it electronically, but will present a challenge in hard copy.

Jim

On Wed, Nov 21, 2018 at 2:51 PM Subhamitra Patra <subhamitra.patra at gmail.com>
wrote: