I have the following code,
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()
}
}
The if block is true about 30 times and I want plot()
to print a graph of ingress vs. Bytes_Outside
for each of those 30 times. So, multiple subplots on a single window (or plot?).
How do I make this happen in RStudio?