How to change axis (plot map)?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to change axis (plot map)?

Pereira
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
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

Re: How to change axis (plot map)?

Hugo Costa
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 <[hidden email]> 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
> [hidden email]
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

Re: How to change axis (plot map)?

Pereira
Hi Hugo,
thank you for your help and advices.

Regards,

Silva

Hugo Costa <[hidden email]> 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 <[hidden email]> 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
>> [hidden email]
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo