simonheb / colorscatter Goto Github PK
View Code? Open in Web Editor NEWDraw scatterplots in Stata where the color varies with a third variable
Draw scatterplots in Stata where the color varies with a third variable
The tw_pre
and tw_post
are defined as (lines 45 and 63 in the ado file):
local command tw (`tw_pre')
local command tw (`tw_pre')
which means that it is not possible to add multiple twoway graphs such as:
(scatteri 0.1 0.9) (scatteri 0.4 0.9)
By removing the two parenthesis from the first two lines of code in this issue, one can now use the line above (or similar) to add 2 twoway graphs to colorscatter
. More than 2 graphs are also possible.
Perhaps this might be of use to someone else.
Disclaimer: Not really an issue. Just an expansion on a current feature.
I am running into various errors when trying to use tw_pre
or tw_post
. The example in the help file does not run for me, with neither the SSC nor github version:
. clear all
. set obs 1000
Number of observations (_N) was 0, now 1,000.
. gen x = rnormal()
. gen y = rnormal()
. gen c = min(abs(x),abs(y))
. colorscatter x y c, scatter_options(msymb(Oh)) title("Twowaytitle") rgb_low(255 0 0) rgb_high(0 255 0) tw_pr
> e(line x y, lc(gray))
"255 0 0%100 invalid name
r(198);
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.