Using R language, Shiny package, and R-studio, develop a simple web app that does the following:
- Load a file containing a MxN matrix (comma delimited) into a data table. The first row of the matrix holds the column names. The first column holds the row names. Remainder values are floating point numbers.
- Display this data table that hold the matrix.
- When the user click on a row of the data table, graph this row onto chart. As the user click on more rows, plot more line graphs (correspond to each clicked row) onto this same chart. Label each line graph with its row name. Each line will have its own color. Note that “parallel coordinates plot” technique will be needed to graph multiple rows on the same chart.
- When the user click on a row (in the displayed data table) that has already been graphed, remove the line graph for that row. Similarly, if a user click on a line graph on the chart, remove that line graph.
- Provide a slide bar so the user can adjust the X scale of the line graph.
Using R-studio (down load from [url removed, login to view]) create a “ui.R” and “server.R” files to implement the above. Create a test file holding a 101x201 (101 rows by 201 columns) matrix, where the element of the first row hold column names c1, c2, … c200. And the first column holds the row names, r1, r2, …r100. Fill the remainder of the matrix elements with random floating point numbers.
- All the line graphs share the X coordinates which are the column numbers, i.e 1, 2, 3 , 4, 5 , 6 ,7, etc to max number of columns.
- The y coordinates for each row's line graph are the floating point values on that row. Example the X, Y coordinates for the first 3 points of row 1 are: point 1: (X=1, y = value at row 1, column 1); point 2 (X=2, Y= value at row 1, column 2); point 3(X = 3, Y= value at row 1, column 3). Reminder that Row 0 holds the columns' names and Column 0 holds the rows names. You don't need to use "parallel coordinates" plot technique.
- The slider bar is used to adjust the Y scale not X scale as incorrectly written earlier.
- The user is allowed to have a maximum of 10 line graphs. Since each line graph has its own color, you can label the line graph such as red = row A, black = row B, blue = row C, etc.
8 pekerja bebas membida secara purata $132 untuk pekerjaan ini
Hi, we are a couple of software engineers in San Francisco. Specialized in data mining and related topics. We also master R programming and are very confident in accomplishing your web app very well. Thank you!