Re: [R] all letters like the R Logo

2021-10-30 Thread Jim Lemon
Hi Cleber,
Looks like Deja Vu Sans Bold to me. If you have the GIMP, check it out.

Jim

On Sun, Oct 31, 2021 at 1:35 PM Cleber Borges via R-help
 wrote:
>
> I once saw an internet article someone who made all the letters of the
> alphabet with the R logo style (font type, blue color and bow).
> I tried several Google searches with different combinations of strings
> but I couldn't find it.
>
> Would anyone know to give news of this article?
> Thanks in advance for tips.
> Cleber Borges
>
>
> --
> Este email foi escaneado pelo Avast antivírus.
> https://www.avast.com/antivirus
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] all letters like the R Logo

2021-10-30 Thread Cleber Borges via R-help
I once saw an internet article someone who made all the letters of the 
alphabet with the R logo style (font type, blue color and bow).
I tried several Google searches with different combinations of strings 
but I couldn't find it.


Would anyone know to give news of this article?
Thanks in advance for tips.
Cleber Borges


--
Este email foi escaneado pelo Avast antivírus.
https://www.avast.com/antivirus

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] png raster in 3D chart

2021-10-30 Thread Cleber Borges via R-help
After a lot of testing and reading the manuals, I think I came pretty 
close to what I wanted (code below).


But some Cartesian axes do not appear.

I placed each axis separately and the corners where the raster images 
coincide overlapping the axes. The others have no problems.



Many thanks,

Cleber

##


library( rgl ); library( grid ); library( jpeg )

Rlogo <- "C:/R/doc/html/logo.jpg"
logo <- readJPEG( Rlogo )

open3d( ); view3d( theta=300, phi=15, zoom=1.2 )

show2d({ par(mar=c(0,0,0,0)); 
grid.raster(logo,0.5,0.5,.80,.80,"center")}, face="xx", rev=1)
show2d({ par(mar=c(0,0,0,0)); 
grid.raster(logo,0.5,0.5,.80,.80,"center")}, face="y-", rev=1)
show2d({ par(mar=c(0,0,0,0)); 
grid.raster(logo,0.5,0.5,.80,.80,"center")}, face="z-")


box3d( floating=NA  )
axes3d( c("x","x-+","x+-","y","y++","z","z--","z++"), tick=FALSE, 
labels=FALSE, expand=1.1 )





Em 30/10/2021 18:34, Duncan Murdoch escreveu:

On 30/10/2021 3:06 p.m., Cleber Borges via R-help wrote:

  library( jpeg );   library( rgl ); library( grid )
   logo <- readJPEG( Rlogo )

   x <- seq( 0,1,len=10 )

   open3d()

   plot3d( x, x, x, type='n' )

    show2d({
    par(mar=c(0,0,0,0))
    grid.raster( logo, x=0, width=1, y=0 )
    })



That's close; the only change I'd make is to the location:

library( jpeg );   library( rgl );  library( grid )
  logo <- readJPEG( Rlogo )

  x <- seq( 0,1,len=10 )

  open3d()

  plot3d( x, x, x, type='n' )

   show2d({
   par(mar=c(0,0,0,0))
   grid.raster( logo, x=0.5, width=1, y=0.5 )
   })

Duncan Murdoch


--
Este email foi escaneado pelo Avast antivírus.
https://www.avast.com/antivirus

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] png raster in 3D chart

2021-10-30 Thread Duncan Murdoch

On 30/10/2021 3:06 p.m., Cleber Borges via R-help wrote:

  library( jpeg );   library( rgl );  library( grid )
   logo <- readJPEG( Rlogo )

   x <- seq( 0,1,len=10 )

   open3d()

   plot3d( x, x, x, type='n' )

    show2d({
    par(mar=c(0,0,0,0))
    grid.raster( logo, x=0, width=1, y=0 )
    })



That's close; the only change I'd make is to the location:

library( jpeg );   library( rgl );  library( grid )
  logo <- readJPEG( Rlogo )

  x <- seq( 0,1,len=10 )

  open3d()

  plot3d( x, x, x, type='n' )

   show2d({
   par(mar=c(0,0,0,0))
   grid.raster( logo, x=0.5, width=1, y=0.5 )
   })

Duncan Murdoch

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] png raster in 3D chart

2021-10-30 Thread Cleber Borges via R-help

Thanks Duncan for your answer.
and I apologize for not mentioning more details.

What I intend to do is more artistic than a scatter plot. I just really 
want the raster images in the 3 planes and the space will be empty anyway.


I still haven't got results but below is my attempts with your tip.

Many thanks,

Cleber



 Rlogo <- "C:/R/doc/html/logo.jpg"
 library( jpeg );   library( rgl );  library( grid )
 logo <- readJPEG( Rlogo )

 x <- seq( 0,1,len=10 )

 open3d()

 plot3d( x, x, x, type='n' )

  show2d({
  par(mar=c(0,0,0,0))
  grid.raster( logo, x=0, width=1, y=0 )
  })






Em 30/10/2021 13:58, Duncan Murdoch escreveu:

On 30/10/2021 12:42 p.m., Cleber Borges via R-help wrote:

Hello all

How to plot a raster image (like the R logo for example) on a plane of a
3D chart?

My intention is to plot an image on each plane: xy, yz, xz...

I've seen something a long time ago on the internet but I can't find it
anymore.

Thanks in advance for any help.


How are you drawing the plot?  If you are using rgl you could display 
a PNG file as a texture on a quadrilateral, or use the show2d() 
function to draw an R flat graphic and display that on a quadrilateral.


Duncan Murdoch


--
Este email foi escaneado pelo Avast antivírus.
https://www.avast.com/antivirus

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] png raster in 3D chart

2021-10-30 Thread Duncan Murdoch

On 30/10/2021 12:42 p.m., Cleber Borges via R-help wrote:

Hello all

How to plot a raster image (like the R logo for example) on a plane of a
3D chart?

My intention is to plot an image on each plane: xy, yz, xz...

I've seen something a long time ago on the internet but I can't find it
anymore.

Thanks in advance for any help.


How are you drawing the plot?  If you are using rgl you could display a 
PNG file as a texture on a quadrilateral, or use the show2d() function 
to draw an R flat graphic and display that on a quadrilateral.


Duncan Murdoch

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] png raster in 3D chart

2021-10-30 Thread Cleber Borges via R-help

Hello all

How to plot a raster image (like the R logo for example) on a plane of a 
3D chart?


My intention is to plot an image on each plane: xy, yz, xz...

I've seen something a long time ago on the internet but I can't find it 
anymore.


Thanks in advance for any help.

Cleber Borges


--
Este email foi escaneado pelo Avast antivírus.
https://www.avast.com/antivirus

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.