Skip to content

fcaR plot not working

4 messages · Peter van Summeren, rsparapa at mcw.edu, Brian Ripley +1 more

#
Hello,
I have a MacBook Air M1

I newly installed R and R studio. Also fcaR(formal concept analysis for R).
I followed fcaR via the help files.
Finally I did fc_planets$standardize() : worked.
Then: fc_planets$concepts$plot()
Warning message:
You have not installed the 'hasseDiagram' package, which is needed to plot the lattice.
So, I installed:
install.packages("hasseDiagram?)
Then: library("hasseDiagram?)
Finally:
  fc_planets$concepts$plot()
It gave:
Warning in install.packages :
  dependencies ?Rgraphviz?, ?graph? are not available
trying URL 'https://cran.rstudio.com/bin/macosx/big-sur-arm64/contrib/4.4/hasseDiagram_0.2.0.tgz'
Content type 'application/x-gzip' length 37789 bytes (36 KB)
==================================================
downloaded 36 KB

No idea what to do to get a plot of the lattice. 
Any help would be appreciated.
Peter
#
Hi Peter:

I don?t know what the graph package is.  But Rgraphviz is an archived package on CRAN?
https://cran.r-project.org/src/contrib/Archive/Rgraphviz/

--
Rodney Sparapani, Associate Professor of Biostatistics, He/Him/His
President, Wisconsin Chapter of the American Statistical Association
Data Science Institute, Division of Biostatistics
Medical College of Wisconsin, Milwaukee Campus

If this is outside of working hours, then please respond when convenient.

From: R-SIG-Mac <r-sig-mac-bounces at r-project.org> on behalf of Peter van Summeren <petervansummeren at gmail.com>
Date: Friday, August 23, 2024 at 4:44?AM
To: R-SIG-Mac at r-project.org <R-SIG-Mac at r-project.org>
Subject: [R-SIG-Mac] fcaR plot not working
ATTENTION: This email originated from a sender outside of MCW. Use caution when clicking on links or opening attachments.
________________________________

Hello,
I have a MacBook Air M1

I newly installed R and R studio. Also fcaR(formal concept analysis for R).
I followed fcaR via the help files.
Finally I did fc_planets$standardize() : worked.
Then: fc_planets$concepts$plot()
Warning message:
You have not installed the 'hasseDiagram' package, which is needed to plot the lattice.
So, I installed:
install.packages("hasseDiagram?)
Then: library("hasseDiagram?)
Finally:
  fc_planets$concepts$plot()
It gave:
Warning in install.packages :
  dependencies ?Rgraphviz?, ?graph? are not available
trying URL 'https://urldefense.com/v3/__https://cran.rstudio.com/bin/macosx/big-sur-arm64/contrib/4.4/hasseDiagram_0.2.0.tgz__;!!H8mHWRdzp34!5oi0FHg-_i3CfEk8FOCqWEVuAOVF_cgiitwPE6t-nvlbIckN5N9UXPvstxUJYtbLyVGCJay83ujsmvcIDmXE3Oh3CA$ '
Content type 'application/x-gzip' length 37789 bytes (36 KB)
==================================================
downloaded 36 KB

No idea what to do to get a plot of the lattice.
Any help would be appreciated.
Peter

_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac at r-project.org
https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/r-sig-mac__;!!H8mHWRdzp34!5oi0FHg-_i3CfEk8FOCqWEVuAOVF_cgiitwPE6t-nvlbIckN5N9UXPvstxUJYtbLyVGCJay83ujsmvcIDmXIcMD7ng$<https://urldefense.com/v3/__https:/stat.ethz.ch/mailman/listinfo/r-sig-mac__;!!H8mHWRdzp34!5oi0FHg-_i3CfEk8FOCqWEVuAOVF_cgiitwPE6t-nvlbIckN5N9UXPvstxUJYtbLyVGCJay83ujsmvcIDmXIcMD7ng$>
#
On 23/08/2024 16:06, Sparapani, Rodney via R-SIG-Mac wrote:
Both are current Bioconductor packages, so their software repository 
needs to be selected.

This is not really a macOS question.  On any platform

setRepositories(ind = c(1:4))
install.packages(c('fcaR', 'hasseDiagram'))

should work: I tested a vanilla R 4.4.1 on arm64 macOS.

  
    
5 days later
#
Peter,

hasseDiagram unfortunately depends on packages outside of CRAN, namely in Bioconductor, so you have to add the corresponding repositories before you install it, e.g.:

setRepositories(ind=1:4)
install.packages("hasseDiagram")
# also installing the dependencies ?BiocGenerics?, ?Rgraphviz?, 'graph?

Ideally, hasseDiagram would warn the user and provide an informative error, but that you?d have to take up with the author.

Cheers,
Simon