Hello,
This is my first post here so if I did something wrong I apologize.
I'm working with a dataset from Comtrade, specifically with information about trade values between Italy, Belgium, Mexico, Israel, Japan and USA. I was trying to make the same graph (Graph 1) and I almost get it. The problem is that I don't know how to put together both x axis and y axis (from the origin) in order to have no space after the beginning.
I run the following code:
twoway scatter porcentaje_com porcentaje_pib, title(" ", margin(b=1)) mlabel(reporter) mlabcolor(black) mlabv(pos) graphregion(fcolor(white)) ytitle("Porcentaje del comercio" " estadounidense con la UE", orientation(horizontal) margin(0 -35 80 0) size(small)) ylab(, ang(hor) labsize(small)) xtitle("Porcentaje del PIB de la UE", margin(0 -45 0 0) size(small)) xlab(, labsize(small)) legend(off) mcolor(ebblue) msize(small) || function y=x, range(0 25) n(2) aspect(1) lcolor(black)
And I got the Graph 2
I hope you understand my question.
Thanks!
PD: the idea is basically to force the line to touch both margins.
Related Posts with Twoway scatter plot: how to modify axis length
Two errors - don't understand whyCan anyone advise? Code: . use "Z:\Data\jt\survival.dta" . capture erase "Z:\Data\jt\file.dta" . …
Using -margins- for different subsamplesHi everyone, margins, atmeans saves the means of covariates of a model in a matrix r(at), see here:…
Resolving problem with day gaps in STATAI am a new STATA user and new to this forum. I am working with daily price data of the Australian do…
ommited control variableHello, I have a sample of 158 firms. I control for industry, and I have 26 industry dummies. One of…
missed ANOVA Matrix in OLS regressionArray Hi, it is my results for Ols regression and doesn't have ANOVA matrix but my tutor results sho…
Subscribe to:
Post Comments (Atom)
0 Response to Twoway scatter plot: how to modify axis length
Post a Comment