I want to create a heat map that graphically shows effect sizes between different outcomes and exposures and if p-values were significant.
I have created one big dataframe containing all exposure-outcomes tests with p-values and effect sizes. The effect direction can be positive or negative. Now, there are great resources to create this for correlation matrices such as corrplot.
I don't get how to do this for effects sizes with different exposures and outcomes.
This would be the sample dataframe. The exposures would be 20 and the outcome 15.
Here is a shortened example. Estimates and p-values made up, so disregard the statical nonsense in the values.
dat
# id Exposure Outcome beta   p-value se      x
# 1  a        1       0.02   0.04    0.001
# 1  a        2       0.52   0.001   0.02
# 1  a        3       0.001  0.54    0.001
# 1  b        1      -0.02   0.09    0.045
# 1  b        2       0.06   0.12    0.03
# 1  b        3      -0.1    0.41    0.09
# 1  c        1      -0.42   0.01    0.08
This is an example of a similar plot using correlation.

 
    