Hi.
I am recently shifting from R to Julia. I want a help in getting individual plot for each ID in a PDF.
I have attached the R code i used to do that. Can someone suggest equivalent code in julia to do the same?
pdf("path//indplots.pdf")
for(i in unique(df$ID))
{
print((ggplot(subset(df,df$ID == i),aes(x=TAD,y=DV))+
geom_point()+
xlab("TAD (hrs)")+
ylab("Plasma concentration (mg/L)")+
ggtitle(paste(as.character(i)))+
theme(panel.grid.minor=element_blank(),
panel.grid.major=element_blank(),
panel.background = element_blank(),
plot.title=element_text(hjust=0.5),
legend.position="right",
legend.key=(element_rect(colour='white',fill='white')),
plot.margin=unit(c(0.5,0.5,0.5,0.5),"cm"),
legend.text=element_text(colour="black",size=10),
axis.text.x=element_text(colour="black",size=10),
axis.text.y=element_text(colour="black",size=10),
axis.title=element_text(colour="black",size=14),
axis.line.x = element_line( colour="black",size=1,linetype ="solid"),
axis.line.y = element_line( colour="black",size=1,linetype ="solid"))))
}
dev.off()
Thanks in advance