print several data frame in a pdf repport

Hello i use R to generate some pdf about some data.
Am searching a solution to put differents data frame on my pdf.
But saddly i cant found any solution for now.

to generate my pdf i use this code :

pdf(paste0("test.pdf"),21/3.5, 29/3.5)

nf <- layout(mat = matrix(c(1, 2, 3, 3, 4, 5,6,6), 4, 2, byrow = TRUE), widths = c(1, 1), heights = c(0.1,0.1,1,1))
par(mar = c(0.5, 1, 0.5, 1))
text(0.5,0.5,paste0("lieux : ",NFS[[6,2]]),cex=0.7,font=1)
text(0.5,0.5,paste0("date : ",NFS[[7,2]]),cex=0.7, font=1)
text(0.5,0.5,"Intercomparaison NFS et ┬ÁP", cex = 1, font = 2, col="red")

ive got 4 data.frame the main one is NFS and the 3 other are data frame made by the main one


I don't understand what you're trying to do. Could you provide a minimal reproducible example?

Hello ive found a solution, by using grid.table() to put several data frames on a pdf, but thank for your answer.
But i have a new one on different topic (still in R ) if you are interessted to help ?

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.