Dear all,

I want to plot two graphs shown pictures below. I would appreciate if anyone can help me out.

Figure 1 displays the cross-national bivariate relationship between social rights (independent variable) and self-rated health (dependent variable), while Figure 2 depict bivariate relationships between self-rated health and social rights,
with the sample stratified according to sex (men versus women).

As for a data example, I have 16 countries and please note that self-rated health and social right are measured as aggregated variables and, thus, each country has only one value for each of these two variables. In my case, self-rated health is labeled as health and social right is labeled as social_right. Since -dataex- command allows for only 100 observations while I have 16 countries, so to provide as much variation as possible I attached an excel file containing an example of my data.

Figure 1:
Array

Figure 2:
Array

Thank you.