Questions tagged [plot]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
41 views

Subset polygons in R

I am trying to separate a specific area on my window of analysis. I have a georeferenced floor plan with rooms as polygons. I want to select and plot only some the rooms I tried this: rooms <- ...
  • 29
1 vote
1 answer
73 views

Percentage of point features within polygon boundaries R

I am trying to create a histogram with the percentage of a concentration of points in a specific area. My data is someting like this: setwd("C:\\Users\\HP\\Desktop\\myrtos") getwd() library(...
  • 29
1 vote
1 answer
41 views

Reading and storing 1st pixels from multiple rasters

I want the code to read 1st pixel from a bunch of rasters (for eg. 1st pixel from 6 different rasters (having same extent and same number of pixels) and convert it into array followed by reading 2nd ...
  • 23
1 vote
0 answers
23 views

How to make contourf plot based on points boundary?

I have a csv file including lan, lon, z values. I've been trying to make contourf based on bellow code : import pandas as pd import numpy as np import matplotlib.pyplot as plt from scipy.interpolate ...
  • 101
0 votes
1 answer
16 views

How to set number of columns with stack or brick or spatraster in rasterVis::levelplot?

If I have a spatraster with 6 layers, rasterVis::levelplot will give a 2 rows and 3 columns plot. How can I change it to 3 rows and 2columns? library(rasterVis) library(terra) f <- system.file(&...
  • 103
0 votes
1 answer
26 views

Trouble overlaying plots in R

I've produced a raster using IDW to make predictions across California, and now I'm trying to overlay the raster image with the border/shapefile of California. I've ensured the CRS projections are the ...
0 votes
0 answers
51 views

r-Mapview not loading background map unless I am online

Looked around but am quite lost. I am new to mapping a set of coordinates that a dataset will provide me. I am using R because it is the only approved program that I can use in my workplace. While I ...
1 vote
0 answers
12 views

How can I make two legends of two different plots with the numeric scale?

I want to campare two images about Surface water temperature from Copernicus, I've imported them and cropped them, but the legends with the colours are slightly different, how can I do for creating a ...
  • 11
0 votes
1 answer
37 views

QGIS Plot Layout SVG in HTML Element - Size Problem

I would like to use an SVG in the QGIS Plot Layout. I am using an HTML Element to display a simple SVG, sized using mm units. The SVG does not seem to display with the desired dimensions. I have ...
1 vote
1 answer
104 views

QGIS aggregate expression to filter selected features in 2nd layer

I´m working with two layers in QGIS: First one with point geometries representing water quality sampling places (LAYER A). The second is a spreadsheet (no geometries) that contains pollution values ...
0 votes
0 answers
39 views

geopandas add legend to simple plot with no columns

I have a single feature that I want to plot with a legend, but the legend is not showing off. It's a simple polygon with simple fill. The code that I ran is like this, import geopandas as gpd import ...
  • 774
0 votes
0 answers
79 views

Creating elevation profile from points with X,Y,Z coordinates

I have a set of points that contain X, Y and Z data. I am trying to plot these either in 3d space or 2d space using X and Z. As an extra it would be nice to be able to compare different sets of data ...
  • 1
1 vote
1 answer
185 views

Using Python to plot flight data over portion of US?

Question I have a dataset in Python that tracks the flightpath of an object. I know the minimum and maximum latitude and longitude of the flightpath. The flightpath is entirely over the Montana. Is ...
  • 11
0 votes
1 answer
44 views

Creating BoxPlot in R

I want to create boxplot to show Forest Percent by localunit (GaPa_NaPa). The attribute data is as shown below:- The data frame is as shown below:- structure(list(GaPa_NaPa = c("Gaidahawa", ...
  • 165
0 votes
0 answers
75 views

Export the map plotted in R to QGIS

I want the map plotted in R to be export in QGIS. The data source that I used for coding in R is as follows:- For Raster:-https://download.hermes.com.np/land-cover-map-of-nepal-2010/. For Vector :-...
  • 165
1 vote
0 answers
66 views

How to plot .tif file colour coding onto the map using JavaScript [closed]

I want to plot color coding from the .tif file into the map with the help of react-leaflet. How can this be done? I am open to other better suggestions. My core goal is to display color coding given ...
1 vote
1 answer
27 views

Display the date on a time series graph

I have the following script that displays graphs of a time series for a variable: import pandas as pd from pandas import read_csv from matplotlib import pyplot %matplotlib inline from matplotlib.pylab ...
  • 121
0 votes
1 answer
334 views

Plotting multiple subplots with different shapefiles in background

I am trying to plot side by side GeoPandas shapefiles using matplotlib but the titles, xlabel and ylabel are not plotting correctly. fig, axes = plt.subplots(1,2, figsize=(10,3), sharex=True, sharey=...
  • 175
2 votes
1 answer
102 views

Creating buffers in ArcGIS Pro from points with variable accuracies

I have quadrilateral forest sample plots defined by GPS coordinates (and accompanying accuracies) taken at each plot corner. Using ArcGIS Pro, I inputted these coordinates as points and created ...
1 vote
0 answers
39 views

How do you plot wiggle plots in QGIS?

I am trying to plot magnetic data along a profile displayed on a map in QGIS 3.22.2. This is a fairly common display type for geophysical data, but I can't find any examples for doing it in QGIS. This ...
4 votes
1 answer
1k views

Converting lines (edges) to polygons with Python

Is there any working function to convert lines (edges) to polygons with Python or I need to implement it myself? I have pairs of points - edges: [[10464, 27071], [22358, 15839], [10464, 24781], [...
  • 387
0 votes
1 answer
63 views

How to add coastline over a plot of a RasterLayer in R?

I'm working with raster images. I need to add the european coastline over this plot(fdiff_north) in order to get a more usable image`: I got this plot by using these codes: ext <- c(4e+06, 5200000,...
1 vote
0 answers
387 views

GeoPandas: assigning unique colors and labels to entries

I would like to plot a map with colors that depend on a categorical variable, i.e. a column with integer number labels (0, 1, 2, ..., 10 for example). Using gdf.plot(column=categorical_variable) I am ...
  • 11
2 votes
1 answer
113 views

Rasterio show_hist display issue

I'm trying to display the histogram for the bands but I keep getting the following object whenever I execute show_hist. Here is the code I executed: from rasterio.plot import show_hist show_hist(...
  • 793
0 votes
1 answer
45 views

NA outcome when running over() between a SpatialPoints and SpatialPolygonsDataFrame

I am having a problem when over() doesn't give a value but keep giving meNA for every field in the outcome data.frame. The aim is to have the counts of tardigrade occurrences in each biogeoregion. ...
1 vote
1 answer
2k views

Showing the legend in GeoPandas when color is given by value

I'm coloring the entities of a GeoDataFrame by the column 'Color'. This column has been created to plot the different continents with different colors, so all the countries belonging to the same ...
0 votes
1 answer
117 views

Spectral profile mapping for Sentinel

I want to plot spectral profile for Sentinel image. For this, I write such a code: var Sentinelbands =['B2','B3','B4','B5','B6','B7','B8','B8A','B11','B12']; var Sentinel=ee.ImageCollection("...
  • 97
2 votes
2 answers
271 views

Cannot plot GeoDataFrame [closed]

I am new to geopandas and having trouble plotting geometry. I have searched the forum and none of the other questions address this issue. import shapely.wkt import geopandas as gpd import pandas as pd ...
2 votes
1 answer
108 views

Plotting large map into several smaller A4

I am using QGIS. I have a big map and licence for exploration. How can I split map with layer bounds (red line polygon-licence) in a few A4 which one will continue to another one etc. in scale 1:5000?
0 votes
0 answers
44 views

Pyferret axes lines thickness

Is there a way to set thickness of specific axes in ferret? With the default pen the lower axis is thin or invisible if I output image as png. I've tried setting PPL PEN 0, 7, which makes this lower ...
  • 85
2 votes
1 answer
47 views

How do I add newline/return character as delimiter on NCAR?

I try using e.g. delimiter=\n or delimiter=str_get_nl() but to no avail. Does anyone know what is the correct command?
  • 129
2 votes
1 answer
449 views

Charting features by a list of properties in Google Earth Engine

I am trying to create a chart in Earth Engine using the ui.Chart.feature.byFeature function. I am basing my code off of the following example provided by Google Developers... // Import the example ...
1 vote
1 answer
33 views

R: plotting lines (SpatialLinesDataFrame) with a different line type according to a nominal attribute

Data I have two pairs of lines (SpatialLinesDataframe), 4 overall. The dataset is pasted below: mydata <- new("SpatialLinesDataFrame", data = structure(list(length = c(500.842234293619, ...
  • 1,484
2 votes
1 answer
1k views

Plotting multiple maps using GeoPandas

I have two GeoDataFrames. The first one have the administrative boundaries of the 25 regions of a country. The second one, the urban fabric of the same country. regions.head() COD NAMEREG ...
2 votes
1 answer
709 views

AttributeError while Plotting GeoDataFrame

I am new to geopandas. I am trying to plot the locations of bays and gulfs. I have a csv file containing their names. After geocoding and finding their locations, I tried to plot the points on a world ...
1 vote
0 answers
46 views

Plotting overlapping vector and raster maps

I am attempting to plot overlapping vector and raster maps with following code: fig, axes = plt.subplots(1,3, figsize=(12, 5)) plt.subplots_adjust(left=None, bottom=None, right=1.1, top=None, wspace=...
  • 800
0 votes
1 answer
129 views

Plotting LISA map using R

I want to draw the following LISA map using LISA plot: I have coded as follow: o1<-California_shp$houseValue o1 [1] 208747.39 118700.00 117146.43 89611.54 107893.75 77731.25 216783.78 [8] ...
  • 9
2 votes
1 answer
432 views

Plotting wind vectors arrows from U and V rasters in QGIS

I have a 'U' and 'V' rasters for wind direction and I want to plot wind direction arrows in QGIS. This is easy to do in Python/matplotlib with the matplotlib.pyplot.quiver function, but I can't find a ...
  • 375
0 votes
1 answer
55 views

Error while ploting multiple geopandas (ArcMap and KML) in the same projection?

I seek help on: Finding possible errors on projections management Guiding me on which should be the best way to know which "labels - colors" are within the path line (not exposed here) -- ...
1 vote
0 answers
44 views

Creating fencing 3D plot using QGIS

I have a DEM and velocity matrices of several transects. Is it possible to import the matrix (or 2D plot of the matrix, heatmap) to QGIS ?
  • 137
2 votes
1 answer
66 views

How can I plot WorldPopProject data (GeoTIFF) in R with an appropriate scale?

I am a complete beginner to using any GIS tools and struggling through some very basic concepts. I am trying to load data from the WorldPopProject (https://www.worldpop.org/geodata/summary?id=6365) ...
  • 23
1 vote
1 answer
178 views

Spectral signature and its standard deviation using R

I am trying to plot a spectral signature using R similar to the one shown in the image. This plot was obtained using Semiautomatic Classification Plugin-QGIS. Half-transparent regions show the range ...
  • 479
2 votes
1 answer
212 views

Surf3D, example from ggRandomForests: Random Forests for Regression

I have a model and I want to use the surf3D function in R, and produce a plot similar to the following (the image is the example from "ggRandomForests: Random Forests for Regression"). ...
  • 37
1 vote
2 answers
193 views

Exchange of coordinates in GeoPandas

I was plotting some points with the plot function in GeoPandas. I realized that when I plotted using Point.lat, Point.long, the points didn't fall at the right place but when I exchanged the ...
4 votes
1 answer
299 views

Changing raster plot break values text using R

I have the following R code that generates a plot. b <- c(0,30,60,90,120,150,180) rast <- raster("study.area.accessibility.tif") r <- clamp(rast, 0, 180) plot(r, col=topo....
7 votes
3 answers
1k views

Plotting polygons as separate plots using Python

I have a shapefile with several polygons in a geodataframe. I want to plot each individual polygon in their own plot. I tried for pol in z3: plt.figure() plt.plot(pol) plt.show() But this just ...
  • 139
0 votes
0 answers
333 views

Plotting time series in QGIS

I have a shapefile with points, like this: x, y, id, data -1.3345,-0.4760, 1, data.csv The data.csv contains: date, data 2020-01-01, 1 2020-01-02, 2 2020-01-03, 3 2020-01-04, 4 How can I plot the ...
6 votes
1 answer
2k views

Plotting multiple raster stacks with rasterVis::gplot and ggplot2::facet_wrap

I'm trying to ggplot2::facet_wrap a stack of rasters, and then call geom_raster to add more rasters on top of the previously mapped raster stack. Here is a very simple example dataset to re-create ...
  • 1,268
3 votes
1 answer
134 views

Fitting the plotted pixels to the country border in QGIS

I have created a plot in Python 3.7 over Alaska. Firstly, the pixels covered a lot more than shown in the image (below). Now I have set the lat lon extend to fit the plot 'better'. Is there a way to ...
  • 798
2 votes
5 answers
2k views

How can I constrain my plot to the extent of the raster image?

I am currently trying to create a multi-panel plot to display six raster images (3,2) using par() and plot(raster()). When I plot the rasters though, R is displaying the Y bounds far beyond what is ...