-
Notifications
You must be signed in to change notification settings - Fork 121
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
Error in valid.viewport(x, y, width, height, just, gp, clip, mask, xscale #935
Comments
Strange, plotting with tmap works for me: library(sf)
x = st_read("sandbox/geoBoundariesCGAZ_ADM2/geoBoundariesCGAZ_ADM2.shp")
tm_shape(x) +
tm_polygons() Although > which(!(st_is_valid(x)))
[1] 3930 6416 13555 13629 13658 14644 20263 20267 27839 37796 39819 40614 41306 42077
> x = st_make_valid(x)
> which(!(st_is_valid(x)))
[1] 6416 13555 14644 39819 Even applying (I still have to implement |
Hello @mtennekes I am using version 3.3.-4, Also, in general I am really struggling with using tmap lately .. some functions seem not work .
I get this
When I change the argument palette to values I still have issue with the title that is ignored. I am just wondering whether all these problems are related to the version I am using Thanks for your help |
Just to continue with the above comment,
|
The docs are still behind. Without being able to check it should be something like this: tm_shape(EIOS_sf) +
tm_dots(
col = "disease",
col.scale = tm_scale(values = "set1"),
col.legend = tm_legend(title = "Disease")) +
tm_facets("YearMonth") |
Check this out: #606 (comment) Instead of using tm_shape(World) +
tm_borders(col="black") +
tm_check_fix() |
@mtennekes when are the docs planned to be updated? Title is OKAY now but the colours are still ignored |
Docs: don't know yet, I'm still working to make v4 as stable as possible. Apologies, it had to be 'fill' instead of 'col'. (This is a breaking change with v3 which we had to do to make the visual variables consistent across different layers: in v4, col is only used for lines and fill for areas) tm_dots(
fill = "disease",
fill.scale = tm_scale(values = "set1"),
fill.legend = tm_legend(title = "Disease")) +
tm_facets("YearMonth") |
Hello,
I am trying to plot the ADM2 shapefile that can be found here https://www.geoboundaries.org/globalDownloads.html
However I am facing this error
I tried fixing it with tmap_options(check.and.fix = TRUE) and sf_use_s2(FALSE) but none of them worked.
I read that others faced similar issues #606
But I cannot understand what the problem is in my case given that I can plot it with the plot function of sf.
The text was updated successfully, but these errors were encountered: