asjadnaqvi / stata-spider Goto Github PK
View Code? Open in Web Editor NEWspider: A Stata package for spider plots.
License: MIT License
spider: A Stata package for spider plots.
License: MIT License
If I am not mistaken, categories need to be formatted as strings. In my use case it would be better if a factor variable can be used because the order of the values has a meaning that should be preserved.
At the moment it is not possible to turn the legend off.
I suggest to redo the if "legend
'" and add:
if "`legend'" == "off" {
local legend legend(off)
}
it is an attempt to create a raw spider plot - see #6
In line 320 a `name' is missing - defined names are not passed through
Dear Asjad,
First of all. Thank you so much for creating this package. I am constantly using spider plots but always found Stata's radar plot unattractive.
I am writing to you because I just tried your package for the first time and when I use the option Smooth I always get an error message saying "variable _m not found"
This only appears when running smooth.
Hope you can help ( :
Thanks in advance!
I would like to create spider plot with scheme neon. However the spike label color seems to be hard-coded to black and is therefore not visible.
Suggestion: add slabcolor option to be able to set spike label color.
Definition: SLABColor(string)
Under label section in ado: if "`slabcolor'" == "" local slabcolor "black"
And in line command: mlabcolor(`slabcolor')
I would really appreciate it!
Is it possible to add export as option to export to any format like pdf, jpeg, png etc
Dear Asjad Naqvi,
Currently I am trying to perform a Spider plot with the package spider, using Stata 18.
I was trying to follow up the tutorial that Asjad Naqvi kindly provide in GitHub:
GitHub - asjadnaqvi/stata-spider: spider: A Stata package for spider plots.
But unfortunately, the by() option is not allowed when I try to perform the code
Code:
spider Domain_score , over ( Domain_name ) by ( EQIndex_detoriation)
option by() not allowed
r(198);
Code:
I also have a second issue, and not sure how to solve it:
The labels in the radar are quite weird (1-2-2-2-2 instead of 0-1-2-3-4-5), and I can't edit them in the edition window
Thanks in advance for your help!
At the moment graph sizes and aspect ratio are fixed at 1. The legend is set at position 6.
In my use case, to present the graphs using Powerpoint, I would like to use the widescreen opportunity - thus x-size is 2,5x of the y-size.
I guess it is necessary that the spider graph plot region itself is quadratic - so the setting itself is necessary, or? But would there be an opportunity to place the legend at position 3, 4 or 5 to use the possible width of a presentation?
Is there currently a way to update the labels in the legend, to make them more readable than just the variable names, e.g. index_EU, index_NA, etc. from the example? I tried to use the legend(label()) option from twoway but it said it was not allowed. Thanks!
First: thanks for your effort!
It would be nice if the variables that define the cat var
could be kept in the order of their appearance in the dataset, or some other ordering variable. At present the categories of the cat var
get displayed in alphabetical order around the web. A workaround to add eg a numerical prefix as in 1-germany
2-france
3-england
and so on works until you get to 10 - we all know the 1 10 11 12 2 3 4 5 thing ...
Cheers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.