Closed lwasser closed 7 years ago
Hi,
Try a smaller distance (e.g. 500m) to draw a scale bar within the bbox. Furthermore, I found a bug in dd2km
. If dd2km
is not to be equal to TRUE
, either omit it or install the development version to use dd2km = FALSE
.
# With the current version
ggsn::scalebar(data = study_area_df, dist = .5, model = "WGS84",
st.dist = .03, st.size = 5, height = .03)
# With the development version
ggsn::scalebar(data = study_area_df, dist = .5, model = "WGS84",
dd2km = FALSE, st.dist = .03, st.size = 5, height = .03)
ok - thank you so much @oswaldosantos i was wondering about this because i did try to set dd2km
to FALSE but it was insisting i add the datum/ellipsoid model which the documentation says i didn't need for projected m vs lat / lon geographic. this solution to remove the dd2km
argument works wonderfully! thank you again. I am closing this issue 👍
Hi there! i'm noticing some unusual behaviour with the scalebar function and wondered if you had seen this before.
My code is here
and the full tutorial is here: https://earthdatascience.org/course-materials/earth-analytics/week-4/r-make-maps-with-ggplot-in-R/
this is for my students. am i doing something wrong ? i'm getting characters for the scale bar and no bar. i presume i'm doing something wrong but can't seem to figure out what! my data are in UTM meters. Thank you for any help.