Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The polygon option only works if the shapefile is in the same directory #17

Open
iVinodMishra opened this issue Aug 30, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@iVinodMishra
Copy link

The polygon option does not work if the shape file is in a different directory and the path is specified. The following code works

bimap TT_IPCA_CW_100K Electrcity_Available using "../Data/GADM/India_District_Coord", cut(equal) palette(bluered) title("{fontface Arial Bold:Bivariate map of Total Crime and Availability of Electrcity }") note("Data from CMIE CPDX database and NCRB") textx("Electrcity Availability (Hours)") texty("CAW Total 100K") texts(3.5) textlabs(3) values count ocolor() osize(none) polygon(data("India_State_Coord.dta") ocolor(white) osize(0.3))

But the following code does not work

bimap TT_IPCA_CW_100K Electrcity_Available using "../Data/GADM/India_District_Coord", cut(equal) palette(bluered) title("{fontface Arial Bold:Bivariate map of Total Crime and Availability of Electrcity }") note("Data from CMIE CPDX database and NCRB") textx("Electrcity Availability (Hours)") texty("CAW Total 100K") texts(3.5) textlabs(3) values count ocolor() osize(none) polygon(data("../Data/GADM/India_State_Coord.dta") ocolor(white) osize(0.3))

It took me a while to figure this out.

@asjadnaqvi
Copy link
Owner

Thank you for letting me know! The polygon() is a passthru to spmap so the problem might exist there already. Will check!

@asjadnaqvi asjadnaqvi self-assigned this Aug 30, 2023
@asjadnaqvi asjadnaqvi added the bug Something isn't working label Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Next update
Development

No branches or pull requests

2 participants