Dear Statalist,
I want to plot a radar chart to show different abilities of a player, with different poles representing different abilities (variables). The following example should be self explanatory of my question.
***************************************
clear *
set obs 10
gen player =_n
forvalues i=1/5 {
gen ability`i'=runiform(1,10)
}
radar player ability1 ability2 /*each line representing one ability , not what i want*/
****what i want is for each player, a radar with a line connecting the 5 abilities, which can be done by reshaping:
reshape long ability , i(player) j(ability_type)
radar ability_type ability if player==1
****can i do the above without reshaping my data? maybe something like:
clear *
set obs 10
gen player =_n
forvalues i=1/5 {
gen ability`i'=runiform(1,10)
}
someotherradar ability1 ability2 ability3 ability4 ability5 if player==1 /****is similar command available?****/
***************************************
Thank you in advance for advice.
Charlie
I want to plot a radar chart to show different abilities of a player, with different poles representing different abilities (variables). The following example should be self explanatory of my question.
***************************************
clear *
set obs 10
gen player =_n
forvalues i=1/5 {
gen ability`i'=runiform(1,10)
}
radar player ability1 ability2 /*each line representing one ability , not what i want*/
****what i want is for each player, a radar with a line connecting the 5 abilities, which can be done by reshaping:
reshape long ability , i(player) j(ability_type)
radar ability_type ability if player==1
****can i do the above without reshaping my data? maybe something like:
clear *
set obs 10
gen player =_n
forvalues i=1/5 {
gen ability`i'=runiform(1,10)
}
someotherradar ability1 ability2 ability3 ability4 ability5 if player==1 /****is similar command available?****/
***************************************
Thank you in advance for advice.
Charlie
Comment