[R-sig-Geo] How to change axis (plot map)?

Lara Silva l@r@@@fp@@ilv@ @ending from gm@il@com
Sat Nov 24 18:50:25 CET 2018


Hi Hugo,
thank you for your help and advices.

Regards,

Silva

Hugo Costa <hugoagcosta using gmail.com> escreveu no dia sexta, 23/11/2018 à(s)
20:27:

> Probably you're looking for arguments xaxp and yaxp, used like this:
> plot(1:100,xaxp=c(0,100,4), yaxp=c(0,100,2))
>
> Please look for more info in the help. Also, if you intend to make maps,
> possibly you should spend some time getting familiar with packages, such as
> ggplot2 or tmap.
>
> Cheers
> Hugo
>
>
> Lara Silva <lara.sfp.silva using gmail.com> escreveu no dia sexta, 23/11/2018
> à(s) 14:31:
>
>> Hello,
>>
>>  I am trying to change the scale/number of x-axis and y-axis (map plot -
>> Figure 1).
>>
>> https://www.dropbox.com/sh/34nddj3405q3a6p/AACe-_23Wx7bZRETYIOYjsiQa?dl=0
>> For example:
>>
>> x-axis: 465000,480000, 500000 (min. med. max values)
>> The same idea for y-axis ....
>>
>> Code:
>>
>> plot(proj22PA$OB_EMmeanByROC_mergedAlgo_mergedRun_mergedData,
>> main= "", xlab ="x.coords", ylab="y.coords", cex.axis=caxis)
>>
>>
>> plot(proj22PA$PittOB_EMmeanByROC_mergedAlgo_mergedRun_mergedData,
>> main= "", xlab ="x.coords", ylab="y.coords",
>> cex.axis=caxis,xlim=c(465000,500000,480000), ylim=c(4270000,4300000))
>>
>> Do not change ... The map has shifted. Probably, I need a new function or
>> modified the argumente for link the information.
>>
>>
>> Another hypothesis
>>
>> plot(proj22PA$Pittosporum_EMmeanByROC_mergedAlgo_mergedRun_mergedData,
>> main= "", xlab ="x.coords", ylab="y.coords", cex.axis=caxis,
>> xaxt="n",yaxt="n")
>>
>> axis(1, seq(450000,480000,500000)) - x.axis
>> axis(2, seq(4270000,425000,4300000)) - y.axis
>>
>> Output - Figure 2. I can not add the "numbers".
>>
>> https://www.dropbox.com/sh/34nddj3405q3a6p/AACe-_23Wx7bZRETYIOYjsiQa?dl=0
>>
>> Is it possible change the scale of legend (200, 400, 600, 800)?
>>
>> Any suggestion for my doubts/problems?
>>
>> Thanks,
>>
>> Silva
>>
>>         [[alternative HTML version deleted]]
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo using r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list