Questions tagged [data.tree]

23 questions
0
votes
0 answers

Plot a hierarchy of computer volumes

I have data frame with devices and volumes hierarchy of computer. I need to draw a plot looking somewhat like this: Here is my code with sample data: dev_vols <- structure(list(Parent = c(NA, "HTREE\\ROOT\\0", "HTREE\\ROOT\\0", …
Maxim
  • 301
  • 1
  • 9
0
votes
1 answer

` in R, "error : attempt to apply non-function"

Below I have shared a code where I am facing an error after trying to Add a child node in a tree I created using the data.tree package of R software. The error says "attempt to apply non-function", I don't know if something is wrong with the type of…
Daniel Chettiar
  • 143
  • 1
  • 10
0
votes
1 answer

Recursive aggregation of data tree

I'm using the data.tree package to perform analysis instead of nested lists as my actual data ends up with the lists being too nested and quite difficult to work with. I've put together sample data based off this question. Aggregating values on a…
NColl
  • 757
  • 5
  • 19
0
votes
1 answer

circlepackeR in R-Shiny - create circle packing graph based on user inputs

I'm trying to make a circlepackeR graph based on user inputs. I'm wondering if that's even possible within the packages I'm using, if I should use a different approach altogether, or if maybe there's just a mistake with my code. I've been staring at…
0
votes
1 answer

Labeling Parent ID then Merging Back with Dataframe

I am trying to label rows with the id of the row above it (their parent id). In the example below, I have a tibble with different things you would say to a person. They are classified into greetings, farewells, questions, etc. Assuming the first…
setty
  • 425
  • 3
  • 18
0
votes
2 answers

Export DiagrammeR, data.tree to image (png) in Shiny

I'm trying to download a image from a Shiny App, this image is produced by a DiagrammeR object. This is the code: # Load packages library(shinythemes) library(DiagrammeR) library(data.tree) library(plotly) library(shiny) # Load data data(acme) #…
Paula
  • 497
  • 2
  • 8
0
votes
1 answer

Plot data.tree coloring and labelling by level

I have the following data.tree structure. d <- structure(list(SUBZONE = c("A1", "A2", "A3", "A4", "A8", "B10", "B11", "B2", "B3", "B4"), ZONE = c("A", "A", "A", "A", "A", "B", "B", "B", "B", "B"), ID =…
Paula
  • 497
  • 2
  • 8
0
votes
1 answer

R: manipulate the list name

Here is my minimal reproducible example: temp = list() temp$rows$`1`$rows$name <- "rows" temp$rows$`1`$rows$`1`$cells$name <- "cells" temp$rows$`2`$rows$name <- "rows" temp$rows$`2`$rows$`2`$cells$name <- "cells" Current…
Joanna
  • 663
  • 7
  • 21
1
2