r - Jitter doesn't seem to separate my points in ggplot scatter plot -


i'm trying offset 2 points in ggplot scatter plot made geom_points. tried default jitter own settings, in both cases don't see difference in plot. plot looks attached image, brazil , mexico quite crowded together. what should differently?plot

here's code i've tried:

     p = ggplot(morning_night, aes(x = ascent_median, y = duration_median)) + geom_point(position = "jitter", aes(color=type, shape=region, size=30))    +geom_text(aes(label=country), hjust = 0, vjust = 1.2)       p = ggplot(morning_night, aes(x = ascent_median, y = duration_median)) + geom_point(position = position_jitter(w=.1, h=.1), aes(color=type, shape=region, size=30))    +geom_text(aes(label=country), hjust = 0, vjust = 1.2)      p = ggplot(morning_night, aes(x = ascent_median, y = duration_median)) + geom_point(position = position_jitter(w=.1, h=.3), aes(color=type, shape=region, size=30))    +geom_text(aes(label=country), hjust = 0, vjust = 1.2)  

here's data frame used graph:

country     ascent_median   duration_median type    region sweden      41.6            1793    morning scandinavia denmark     33              1960    night   scandinavia mexico      75              1877    morning latinamerica brazil      74.4            1928    night   latinamerica indonesia   41.8            1492    morning southeastasia malaysia    48.7            2208    night   southeastasia switzerland 64.3            2461    morning centraleurope austria     67.9            2113    night   centraleurope 


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -