
I read about possibility of using foreach, but it does not work out, whatever I try, I and up in errors. I have a fairly large simulation, that I currently run in Shiny using double for loop and it takes very long. Geom_sf(data = north_carolina_2163, aes(fill = BIR74)) +Ĭoord_equal(xlim = c(0, 20), ylim = c(0, 20), expand = FALSE) +Īnnotation_custom(ggplotGrob(inset), xmin = 0, xmax = 10, ymin = 10, ymax = 20) +Īnnotation_custom(ggplotGrob(main), xmin = 0, xmax = 20, ymin = 0, ymax = 10) + Geom_sf(data = north_carolina_2163_bb, fill = NA, color = "yellow", size = 1.2) + Geom_sf(data = us_states_2163, fill = "white") + North_carolina_2163 = st_transform(north_carolina, crs = 2163) North_carolina = read_sf(system.file("shape/nc.shp", package = "sf"))
#Lattice synplify pro error code 9 how to#
If anyone has suggestions for how to improve this, particularly for assigning the leader line coordinates programmatically, I'm all ears. I had trouble drawing lines in cowplot between the two ggplot objects, so I assigned a new coordinate system for the resulting plot and manually defined the start and endpoints for lines.
