Tag Info

New answers tagged

0

I was able to define legend on fly (i.e. definition of boundaries are made on fly) using the following trick: DATA "geom FROM (SELECT E.%type% as value, (select max(%type%)/5 from EMISSIONS) as fifth_of_max_value, E.YEAR as YEAR, E.SHAPE_60M as geomFROM EMISSIONS E WHERE e.level=%level% ) USING NONE" Then, in the classes definition, I use the ...


1

For GRASS you can use the r.colors to modify the color table for a raster map. r.colors also ships with pre-defined color maps for temperature scales. It's simple to use even r.colors map=spring color=celsius You can also copy the color table from one map to another r.colors map=spring2 raster=spring For more details see the GRASS GIS manual ...


0

I could not find a way to do this in Grass, but it is possible in SAGA. Here is a brief recipe: 1) After you import the TIFF file into the project 2) you can go to the Properties panel in the Setting tab and lookk for Colors->Type->Scaling->Value Range You can see something like Value Range 5:15. 3) Click in the text box and replace those values with ...


1

I always appreciate the application of "ggplot" but this can easily be done using the low level plotting functions available in R. I like @mdsumner's solution because it is so efficient. However, you do not have clear control of a specific color pallet. A simple approach is to use "ifelse" to create a vector of equal length to your variable, containing the ...


1

Use cut to build the breaks, and auto-coercion of the cut factor to integer: plot(spLinesDF, col=colors[cut(spLinesDF$Turbidity, breaks)])


1

Here is one suggestion: require(ggplot2) #function fortify, function ggplot require(plyr) # function join spLinesDF@data$id = rownames(spLinesDF@data) #join id column to data slot on SpatialLinesDataFrame df = fortify(spLinesDF,region="id") #create data frame from SpatialLinesDataFrame df = join(df, spLinesDF@data, by="id") #add Turbity information ...


3

For this you should use a graduated color renderer: The graduated color renderer is one of the common renderer types used to represent quantitative information—especially for polygon feature classes. Using a graduated colors renderer, the quantitative values for a field are grouped into ordered classes. Within a class, all features are drawn with ...


1

As you guessed it's impossible to make the legend smaller then its contents. So, to change the legend font size, use something like: newFont = QFont("Comic Sans MS", 6) cleg.setStyleFont(QgsComposerLegendStyle.Title, newFont) cleg.setStyleFont(QgsComposerLegendStyle.Subgroup, newFont) cleg.setStyleFont(QgsComposerLegendStyle.SymbolLabel, newFont) ...


2

The process for creating and using new symbols is described in the help page entitled About creating new symbols, in particular within the section entitled Creating new symbols in Style Manager where it says: While it is convenient to create symbols as you need them when authoring your maps, sometimes it is more efficient to build a whole style of ...



Top 50 recent answers are included