Hello!
to make clear what my problem is I use the data "sysuse auto".
To show you my problem I use two categorial variables, so I had to create one with the variable "price"
I want to create a grouped bar chart with the command "Catplot", that works great too.
But the labeling bothers me.
I would like to remove the font "Car Type".
How can I solve the problem?
Syntax:
generate price_exp= 0
replace price_exp = 1 if price>5000
generate price_low = 0
replace price_low = 1 if price<4999
generate price_kat =1 if price_exp==1
replace price_kat =2 if price_low==1
label variable price_kat "Price kategorial"
label define price_label 1 "Teuer" 2 "Billig"
label value price_kat price_label
tab price_kat
tab foreign price_kat, column
catplot foreign, over(price_kat) percent(price_kat) asyvar recast(bar)
Related Posts with Changing the graph label while using the "catplot" command
Merge based on partial matchI want to merge two datasets based on three variables, id, begin date, end date. I want to merge tog…
color of box plotsHi, I created two box plots for the birth weight of infants based on two interventions during pregna…
Over identification & weak instrument tests in a 2SLS with more than one IVDear All, I have the following variables in a 2SLS model. Ivregress 2slsl y (x1 x2 = z1 z2 z3) x3 x…
Generating CAPM BetaI want to use below code to generate monthly CAPM beta which is equal to beta coefficient of mkt obt…
Categorical variable per key (no unique keys)Hi guys, currently I am struggling with below table: Array The second column contains a combination…
Subscribe to:
Post Comments (Atom)
0 Response to Changing the graph label while using the "catplot" command
Post a Comment