Re: [R] Plotting a triangular prism

2022-11-10 Thread Jim Lemon
Hi Erin,
If you want a realistic 3D prism, I would use something like POVRay or
other rendering software. You have to know your geometry, but you can
get a very realistic image. I suspect that you want more than just a
picture of a prism, so you can then generate a PNG image and use it as
a layer in a composite image in something like the GIMP.

Jim

> > On Nov 10, 2022, at 5:46 PM, Erin Hodgess  wrote:
> >
> > Hello!
> >
> > I’m trying to draw a triangular prism.  I have used rgl, plot3d, and it’s
> > still not working as I would like.
> >
> > Has anyone done this, please?
> >
> > Thanks for any help.
> >
> > Sincerely,
> > Erin

__
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] Plotting a triangular prism

2022-11-10 Thread David Winsemius
One might think that after all these years you would have understood that “it’s 
not working” is an excessively imprecise description of, well, anything. 

Also html is deprecated severely on Rhelp. 

— 
David. 

Sent from my iPhone

> On Nov 10, 2022, at 5:46 PM, Erin Hodgess  wrote:
> 
> Hello!
> 
> I’m trying to draw a triangular prism.  I have used rgl, plot3d, and it’s
> still not working as I would like.
> 
> Has anyone done this, please?
> 
> Thanks for any help.
> 
> Sincerely,
> Erin
> -- 
> Erin Hodgess, PhD
> mailto: erinm.hodg...@gmail.com
> 
>[[alternative HTML version deleted]]
> 
> __
> 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] Plotting a triangular prism

2022-11-10 Thread Erin Hodgess
Hello!

I’m trying to draw a triangular prism.  I have used rgl, plot3d, and it’s
still not working as I would like.

Has anyone done this, please?

Thanks for any help.

Sincerely,
Erin
-- 
Erin Hodgess, PhD
mailto: erinm.hodg...@gmail.com

[[alternative HTML version deleted]]

__
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-es] Leer txt con casos con diferentes columnas

2022-11-10 Thread Emilio L. Cano
Comparto la solución que le funcionó a José Miguel, que no iba en copia la 
lista:

> ¿Y si le pasas col.names con 50 nombres? 
> Por ejemplo: paste0("V", 1:50)
> 
> Porque el número de columnas las decide con las 5 primeras filas, pero creo 
> que esta opción determina que serán 50 y entonces el fill debería funcionar.
> 


Emilio L. Cano
http://emilio.lcano.com 




> El 10 nov 2022, a las 15:37, Carlos Guadián Orta  
> escribió:
> 
> En RStudio desde la pestaña environment utiliza "import dataset"
> 
> 
> 
> Hace la asignación de NA automáticamente
> 
> 
> 
> Carlos Guadián Orta
> Mi web es https://carlosguadian.net  
> Mi perfil profesional en LinkedIn 
> Mi Twitter es @carlosguadian 
> Mi Newsletter - CluPad 
> 
> 
> El jue, 10 nov 2022 a las 13:31, Emilio L. Cano ( >) escribió:
>> Hola,
>> Prueba el argumento fill = TRUE
>> 
>> Un saludo,
>> Emilio
>> 
>> 
>> 
>> 
>> 
>> > El 10 nov 2022, a las 13:00, Jose Miguel Contreras > > > escribió:
>> > 
>> > Hola a todos
>> > 
>> > Tengo ficheros de texto (.txt) en el que cada caso puede tener diferentes 
>> > columnas (45 o 50).
>> > 
>> > Si lo paso a mano a csv con excel no hay problema al leerlo en R, ya que 
>> > lo lee y le asigna NA a las columnas que tienen 45 columnas. Pero no 
>> > encuentro como hacer lo mismo en R cuando es txt, directamente ni lo lee 
>> > “Error in scan(file = file, what = what, sep = sep, quote = quote, dec = 
>> > dec,  :  line 626 did not have 45 elements” . Necesitaría que hiciera lo 
>> > mismo que al leerlo en csv.
>> > 
>> > ¿Me podríais ayudar?
>> > 
>> > Gracias de antemano
>> > 
>> > 
>> > José Miguel
>> > ___
>> > R-help-es mailing list
>> > R-help-es@r-project.org 
>> > https://stat.ethz.ch/mailman/listinfo/r-help-es
>> 
>> 
>> [[alternative HTML version deleted]]
>> 
>> ___
>> R-help-es mailing list
>> R-help-es@r-project.org 
>> https://stat.ethz.ch/mailman/listinfo/r-help-es


[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R-es] Leer txt con casos con diferentes columnas

2022-11-10 Thread Emilio L. Cano
Hola,
Prueba el argumento fill = TRUE

Un saludo,
Emilio





> El 10 nov 2022, a las 13:00, Jose Miguel Contreras  
> escribió:
> 
> Hola a todos
> 
> Tengo ficheros de texto (.txt) en el que cada caso puede tener diferentes 
> columnas (45 o 50).
> 
> Si lo paso a mano a csv con excel no hay problema al leerlo en R, ya que lo 
> lee y le asigna NA a las columnas que tienen 45 columnas. Pero no encuentro 
> como hacer lo mismo en R cuando es txt, directamente ni lo lee “Error in 
> scan(file = file, what = what, sep = sep, quote = quote, dec = dec,  :  line 
> 626 did not have 45 elements” . Necesitaría que hiciera lo mismo que al 
> leerlo en csv.
> 
> ¿Me podríais ayudar?
> 
> Gracias de antemano
> 
> 
> José Miguel
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es


[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


[R-es] Leer txt con casos con diferentes columnas

2022-11-10 Thread Jose Miguel Contreras
Hola a todos

Tengo ficheros de texto (.txt) en el que cada caso puede tener diferentes 
columnas (45 o 50).

Si lo paso a mano a csv con excel no hay problema al leerlo en R, ya que lo lee 
y le asigna NA a las columnas que tienen 45 columnas. Pero no encuentro como 
hacer lo mismo en R cuando es txt, directamente ni lo lee “Error in scan(file = 
file, what = what, sep = sep, quote = quote, dec = dec,  :  line 626 did not 
have 45 elements” . Necesitaría que hiciera lo mismo que al leerlo en csv.

¿Me podríais ayudar?

Gracias de antemano


José Miguel
___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


[R] [R-pkgs] TDApplied version 2.0.0

2022-11-10 Thread Shael Brown
Dear R users,

I am very excited to announce TDApplied version 2.0.0 is now available on
CRAN, with some significant improvements to the previous version.

Topological data analysis is a powerful tool for finding non-linear global
structure in whole datasets. 'TDApplied' aims to bridge topological data
analysis with data, statistical and machine learning practitioners so that
more analyses may benefit from the power of topological data analysis. The
main tool of topological data analysis is persistent homology, which
computes a shape descriptor of a dataset, called a persistence diagram.

There are five goals of this package:

(1) convert persistence diagrams computed using the two main R packages for
topological data analysis into a data frame,
(2) implement fast versions of both distance and kernel calculations
for pairs of persistence diagrams,
(3) provide methods for machine learning and inference for persistence
diagrams which scale well,
(4) deliver a fast implementation of persistent homology via a python
interface, and
(5) contribute tools for the interpretation of persistence diagrams.

For details and examples please check out the github page
https://github.com/shaelebrown/TDApplied or the README file on CRAN
https://cran.r-project.org/web/packages/TDApplied/readme/README.html

I sincerely hope that you will enjoy using this updated version and that it
helps the field of topological data analysis progress in both academia and
industry.

Best regards,
Shael

[[alternative HTML version deleted]]

___
R-packages mailing list
r-packa...@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-packages

__
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.