Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 80215

a graphical technique for representing a data set. Usually showing the relationship between two or more variables.

4 votes
Accepted

How can I create a multi-dimensional spectral plot using R?

, you can use any geom_*, I prefer boxplots for this kind of comparison: library(magrittr) library(tidyr) library(ggplot2) library(cowplot) # only for plot style df %>% gather(Variable,Value,-ID) %>% … ggplot(aes(ID,Value,color=ID))+ geom_boxplot() + facet_wrap(~Variable,scales = 'free') + xlab('Class')+ scale_color_manual(NULL,values = c('1'='black','2'='red','3'='blue')) For a n-d plot, use …
aldo_tapia's user avatar
  • 13.8k
1 vote
Accepted

Remove internal boundaries in spatial object/polygon for plotting

With rgeos you can achieve this in R: library(geojsonio) library(sp) library(rgeos) m1<-geojson_read("topo_E06000023.json", what="sp") m2 <- gUnaryUnion(m1) plot(m1) plot(m2, add=T, border = 'red') …
aldo_tapia's user avatar
  • 13.8k
3 votes
Accepted

Adding a legend to points in the tmap package

My two cents... Set labels and text in tm_add_legend() and set legend.col.show = F in tm_text: tm_shape(st_as_sf(Europe)) + tm_polygons() + …
aldo_tapia's user avatar
  • 13.8k
6 votes
Accepted

R tmap package: basemap not working

Change default tmap_mode('plot') to tmap_mode('view'): library(tmap) data("NLD_prov") tmap_mode('view') tm_shape(NLD_prov) + tm_polygons('population') + tm_layout(basemaps = c('OpenStreetMap')) …
aldo_tapia's user avatar
  • 13.8k