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

cannot adjust line thickness #9

Open
ypchan opened this issue Jun 16, 2023 · 0 comments
Open

cannot adjust line thickness #9

ypchan opened this issue Jun 16, 2023 · 0 comments

Comments

@ypchan
Copy link

ypchan commented Jun 16, 2023

Dear developers,

I am using your package, I have a problem in using it. I failed to adjust the thickness of line. The codes are as follows.

df4 <- china %>%
    filter(Code_Province %in% c("51"))

df4_prov <- df4 %>%
    group_by(Name_Province) %>%
    summarise(geometry = st_union(geometry))

df4_perf <- df4 %>%
    group_by(Name_Prefecture) %>%
    summarise(geometry = st_union(geometry))

ggplot() +
    geom_sf(data = df4_perf,
            #aes(fill = factor(generate_map_colors(df4_perf))),
            linetype = "solid", color='black', size = 5) +#the size = 5 same with size =1. I did not know why.
    #scale_fill_brewer(palette = "Pastel1") +
    geom_sf(data = df4, alpha = 0.3, linetype = "dotted", size = 0.2, color='gray50') +
    geom_sf(data = df4_prov, alpha = 0, linetype = "solid", size = 1.5) +
    geom_sf_label(data = df4_perf, aes(label = Name_Prefecture)) +
    #theme_minimal() +
    theme(legend.position = "none")

Thank you very much. The code linetype = "solid", color='black', size = 5, size=5 did not woek.

sincerely,
yanpeng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant