У меня есть следующий код,
for (i in 1:length(split_fill_data)) {
new_frame <- split_fill_data[i]
new_frame_2 <- do.call(rbind.data.frame, new_frame)
if(is.element(head(new_frame_2["egress"],1), unlist(mkt_out_60["egress"])))
{
print(head(arrange(new_frame_2,desc(Bytes_Outside))),5)
#print('hello')
plot(new_frame_2$ingress, new_frame_2$Bytes_Outside, main=head(new_frame_2["egress"],1))
#x11()
}
}
Блок if равен true примерно 30 раз, и я хочу, чтобы plot()
напечатал график ingress vs. Bytes_Outside
для каждого из этих 30 раз.Итак, несколько субплотов в одном окне (или графике?).
Как мне сделать это в RStudio?