I have a CSV lists of nodes and edges, and load both accordingly in Gephi.
My node list looks like this:
Id Date weight
56079348 12.07.2009 141
77150491 25.09.2009 2161
612473 08.01.2007 94
621523 10.01.2007 128
I want to make node circles sized according weight column.
Is it possible, and if yes how to?
Yes it is possible, this is what the ranking panel is for.
Be sure to have imported your "weight" values as numerical values (Float, Integer, Long...), not textual (String). This can be checked in the import wizzard, at the step when you are asked to confirm / choose the type of each attribute.
Once you have made this check, visit the "ranking" panel in Gephi and select your weight attribute in the drop down menu. Then click on "Apply".
This tutorial has some slides on ranking, and more: http://www.slideshare.net/gephi/gephi-quick-start.
Related
I have a table measuring the distance and time via public transport between two postcodes. The postcodes are down column A and also are written in row 1:1 (photo below to explain)
I want to write a formula that says
Match Area name - ie 'Holborn' in the horizontal row, search down column matching 'distance' and return 10 smallest values telling me the distance BUT also bring back the matching store (from column A).
Help very much appreciated.enter image description here
I was trying to achieve it with a filter, sort and limit but I'm not getting anywhere.
try:
={A2:A, FILTER(B2:Z, B1:Z1="Holborn")}
I have a SQL query that acts as a data source in my tableau desktop:
SELECT
row_number() over (order by sales) as rn,
article_number,
country,
SUM(sold_items) as si,
SUM(sales) as sales
FROM data.sales
WHERE sales.order_date between '2021-01-01' and '2021-12-31'
GROUP BY 2, 3
On tableau I dragged rn to column and sales to row to generate a bar chart. The following is the output:
I want to convert this into a 0-100% distribution chart so that I can get the following result:
How can I achieve this? Also, I want the user to filter by country level so even if the # of records increase or decrease, the distribution should always be consistent with the filtered data.
You can do this with nested table calcs.
For example, the following uses the Superstore sample data set, and then first computes a running total of SUM(Sales) per day, then converts that to a percent of total. Notice the edit table calc dialog box - applying two back to back calculations in this case.
The x-axis in this example is Order-Date, and in your question, the the x-axis is a percentage somehow - so its not exactly what you requested but still shows that table calcs are an easy way to do these types of operations.
Also, realize you can just connect to the sales table directly, the custom sql isn’t adding any value, and in fact can defeat query optimizations that Tableau normally makes.
The tableau help docs explains table calculations. Pay attention to the discussion on partitioning and addressing.
Beginner here!
Here's a spreadsheet trying to show what I mean.
Suppose I have data for metrics in comparison to my competitors.
The metrics are sorted highest to lowest and I want to turn the names of the other companies into "Company 1, Company 2, etc." along with the order of the metrics. Myself ("Me") remains unchanged.
With every data set the competitors could be different companies, and I could be ranked in a different position. The number of competitors could range from 1-20.
Is there a way to automate the green fields in the spreadsheet so that I can just paste the data and the competitor numbering stays constant no matter where I appear in the list?
Thank you!
Lighter Torches, I've added a sheet named "Erik" to your spreadsheet.
I've placed an array formula into two cells: G5 and J5. They are the same except for the relative cell references. Since it is an array formula, the single formula in G5 "runs" the entire data set generated in G5:H; likewise, the formula in J5 "runs" the entire data set generated in J5:K. Array formulas do not require dragging/copying to other cells.
Here is the G5 formula:
=ArrayFormula(QUERY(SPLIT({"Me"&"^"&IFERROR(VLOOKUP("Me",A5:B,2,FALSE),"NA");"Company "&ROW(INDIRECT("A1:A"&COUNTA(FILTER(A5:A,A5:A<>"",A5:A<>"Me"))))&"^"&SORT(FILTER(B5:B,A5:A<>"",A5:A<>"Me"),FILTER(B5:B,A5:A<>"",A5:A<>"Me"),FALSE)},"^"),"Select * Order By Col2 Desc"))
In your sample data, the companies are already ordered by rank, best to worst. But in the real world, it seems that may not always be the case. With that in mind, you'll notice that I moved your top performer to the bottom in the second data set. I've written the formulas to account for this (i.e., they will order the companies in the correct order whether they were originally in the correct order or not).
Also, if "Me" for some reason doesn't appear in a raw-data list at all, it still shows up, unranked, at the top of the generated list. Again, I tried to account for real-world what-ifs in the formula.
Finally, I added a sheet-wide custom Conditional Formatting rule that applies bold to any occurrence of the word "Me," since it seemed you were doing that manually. As such, you can type the sole word "Me" in any cell in the sheet, and it will automatically be formatted bold. You can see this rule by selecting Format > Conditional Formatting from the menu, then clicking on the rule you see in the window that appears.
This is my first time using CartoDB. My dataset is a simulation of the behaviour of users arround the campus. My rows have latitude, longitude and the class column depending of the cluster in which the user is.
I saw an option to visualize the animation of the behaviour (cartodb transforms the data into a time lapse), but I'm trying to see the points colored by the class value. In the platform, there is an option to do that, but when I choose the "animation" mode then I can't choose any of the columns to set the color.
I show you an image:
However, if I choose the "By points" mode, I can display the points color by the class column value.
Is there anyone who has had the same problem? Do you have any recommendation?
I think the problem is on the column type, you need your column to be a string to be offered as a value, so maybe you want add a column to your SELECT statement on the DATA tab to reclassify your clusters. If you rename then you can also show them on the legend can reflect a better name for your clusters:
select *,
case cluster
when 1 then 'Cluster 1'
when 2 then 'Cluster 2'
else 'unknown'
end as cluster_named
from my_table
Something around that should help to convert cluster numeric field into a string one, then you'll see it offered to animate by that value.
Disclaimer: I work at CARTO
I'm new to cytoscape.
I want to make the width of edges in my network according to a certain number.
my file looks like this:
node1 node2 34.04
node3 node2 56.89
node4 node5 8.09
node1 node4 10.54
when I import my network file I choose column 3 to be the "interactions". Then the number in column 3 ends up in a string column, and can't be used to make a continuous mapping. When I import the same table as node attributes I am still only able to get it in to a string column.
I have tried to look in the manual and googled a lot - but I seem to be the only one having this problem. How do I solve it?
Thanks
This answer is for Cytoscape 2.8.3. It probably applies for 3.?.?.
Like you say, with your file format, the numbers will be used to population "interaction", and that is a String attribute.
So, for your file, do not set the Interaction Type (red) in the Import Network from Table dialog. Instead, set Source Interaction (purple) to Column 1 and Target Interaction (orange) to Column 2. Then, in the table at the bottom of the dialog, click the column header Column 3. It will turn blue. It will then be imported as a floating point attribute as "Column 3", and you can use it in a Continuous mapper.