We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Example with cluster from bayesian gxe model
data_cluster = out_model_bh_GxE_vec_variables$out_parameter_groups_t$clust$clust data_cluster$parameter = rownames(data_cluster) vec_loc = vec_lat = vec_long = NULL for(i in 1:nrow(data_cluster)){ loc = unlist(strsplit(sub("theta\\[", "", as.character(data_cluster[i, "parameter"])), ":"))[1] vec_loc = c(vec_loc , loc) lat = data[which(data$location == loc), "lat"][1] vec_lat = c(vec_lat, lat) long = data[which(data$location == loc), "long"][1] vec_long = c(vec_long, long) } data_cluster$location = vec_loc data_cluster$lat = vec_lat data_cluster$long = vec_long p = plot(data, plot_type = "map") p = p$map + geom_nodelabel_repel(data = data_cluster, aes(x=as.numeric(long), y=as.numeric(lat), fill = clust, label=location)) p
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Example with cluster from bayesian gxe model
The text was updated successfully, but these errors were encountered: