I was wondering if anyone could see why, in the plot shown in the above post (#5), the point for n2 (56447) in the rightmost facet (test_pwrss_z_2props_no_arcsin_power) is seemingly misaligned? I'm thinking it is because of some interaction with the separate data frame (annotation_tibble) and the facetting, but I'm stumped as to understand where specifically the mistake occurs.
Hi @QueryingQuagga. Looking through the code in the previous post, I do not believe the plot is misaligned. The line graph is created from result_long with x = n1. Inspecting result_long below for the specific n1 and n2 values identified in annotation_tibble, we see that power is actually not at the 0.8 threshold when n1 = 56447 for test_pwrss_z_2props_no_arcsin_power. The plot is actually reflecting the proper power of 0.914. The actual n1 value should be located at 57655.
I recreated the plot below and added blue dotted lines at n1 = 56447 and power = 0.914. As shown, the intersection lands squarely on the line in the third faceted plot. Therefore, the plot appears to be rendering accurately.